From: Akinobu Mita Date: Sun, 28 Jul 2013 02:21:57 +0000 (+0900) Subject: mtd: nandsim: remove unused code X-Git-Tag: MMI-PSA29.97-13-9~13677^2~91 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8e716a8b581a4700932a52ee89e981fa3339e0ff;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git mtd: nandsim: remove unused code Remove the leftover from commit 831d316b8b80b68dcdd2b3f5ede6d33c2bbf5835 ("mtd: nandsim: remove autoincrement code"). Signed-off-by: Akinobu Mita Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse --- 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) ns->nbparts += 1; } - /* Detect how many ID bytes the NAND chip outputs */ - for (i = 0; nand_flash_ids[i].name != NULL; i++) { - if (second_id_byte != nand_flash_ids[i].dev_id) - continue; - } - if (ns->busw == 16) NS_WARN("16-bit flashes support wasn't tested\n");