aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAkinobu Mita <akinobu.mita@gmail.com>2013-07-27 22:21:57 -0400
committerDavid Woodhouse <David.Woodhouse@intel.com>2013-08-05 16:05:47 -0400
commit8e716a8b581a4700932a52ee89e981fa3339e0ff (patch)
tree97de98635bc5abb6c7bd6b310f0092c6095cf6db
parent6d07fcf7e0e5da20120af247804f2cc9d2af82ac (diff)
mtd: nandsim: remove unused code
Remove the leftover from commit 831d316b8b80b68dcdd2b3f5ede6d33c2bbf5835 ("mtd: nandsim: remove autoincrement code"). Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
-rw-r--r--drivers/mtd/nand/nandsim.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/mtd/nand/nandsim.c b/drivers/mtd/nand/nandsim.c
index 0ff53ef68dc4..ce90990cdce2 100644
--- a/drivers/mtd/nand/nandsim.c
+++ b/drivers/mtd/nand/nandsim.c
@@ -760,12 +760,6 @@ static int init_nandsim(struct mtd_info *mtd)
760 ns->nbparts += 1; 760 ns->nbparts += 1;
761 } 761 }
762 762
763 /* Detect how many ID bytes the NAND chip outputs */
764 for (i = 0; nand_flash_ids[i].name != NULL; i++) {
765 if (second_id_byte != nand_flash_ids[i].dev_id)
766 continue;
767 }
768
769 if (ns->busw == 16) 763 if (ns->busw == 16)
770 NS_WARN("16-bit flashes support wasn't tested\n"); 764 NS_WARN("16-bit flashes support wasn't tested\n");
771 765