mtd: pfow: remove unused variable

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Tue Jun 10 23:59:10 PDT 2014


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=29fe5732bef2ba3c785fcb4aa5ba7160ad8faba5
Commit:     29fe5732bef2ba3c785fcb4aa5ba7160ad8faba5
Parent:     897f3a18b0bbe466b7405d96bc99550578d5b145
Author:     Brian Norris <computersforpeace at gmail.com>
AuthorDate: Thu Mar 6 09:44:18 2014 -0800
Committer:  Brian Norris <computersforpeace at gmail.com>
CommitDate: Wed May 28 00:05:23 2014 -0700

    mtd: pfow: remove unused variable
    
    Fixes warning:
    
    In file included from drivers/mtd/lpddr/qinfo_probe.c:31:0:
    include/linux/mtd/pfow.h: In function ‘send_pfow_command’:
    include/linux/mtd/pfow.h:104:6: warning: variable ‘chipnum’ set but not used [-Wunused-but-set-variable]
      int chipnum;
          ^
    
    Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
 include/linux/mtd/pfow.h | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/include/linux/mtd/pfow.h b/include/linux/mtd/pfow.h
index b730d4f..42ff7ff 100644
--- a/include/linux/mtd/pfow.h
+++ b/include/linux/mtd/pfow.h
@@ -101,9 +101,6 @@ static inline void send_pfow_command(struct map_info *map,
 				unsigned long len, map_word *datum)
 {
 	int bits_per_chip = map_bankwidth(map) * 8;
-	int chipnum;
-	struct lpddr_private *lpddr = map->fldrv_priv;
-	chipnum = adr >> lpddr->chipshift;
 
 	map_write(map, CMD(cmd_code), map->pfow_base + PFOW_COMMAND_CODE);
 	map_write(map, CMD(adr & ((1<<bits_per_chip) - 1)),



More information about the linux-mtd-cvs mailing list