From: David Woodhouse Date: Sat, 15 Jul 2006 12:26:18 +0000 (+0100) Subject: [MTD NAND] Fix lookup error in nand_get_flash_type() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=9a909867d2eca7727d0d5884df96e791e3531f24;p=linux-beck.git [MTD NAND] Fix lookup error in nand_get_flash_type() Spotted by liyu Signed-off-by: David Woodhouse --- diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c index cffd66309ffa..119d17cdb780 100644 --- a/drivers/mtd/nand/nand_base.c +++ b/drivers/mtd/nand/nand_base.c @@ -2222,7 +2222,7 @@ static struct nand_flash_dev *nand_get_flash_type(struct mtd_info *mtd, } /* Try to identify manufacturer */ - for (maf_idx = 0; nand_manuf_ids[maf_idx].id != 0x0; maf_id++) { + for (maf_idx = 0; nand_manuf_ids[maf_idx].id != 0x0; maf_idx++) { if (nand_manuf_ids[maf_idx].id == *maf_id) break; }