Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8e716a8b authored by Akinobu Mita's avatar Akinobu Mita Committed by David Woodhouse
Browse files

mtd: nandsim: remove unused code



Remove the leftover from commit 831d316b
("mtd: nandsim: remove autoincrement code").

Signed-off-by: default avatarAkinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent 6d07fcf7
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -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");