소스 검색

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>
Akinobu Mita 12 년 전
부모
커밋
8e716a8b58
1개의 변경된 파일0개의 추가작업 그리고 6개의 파일을 삭제
  1. 0 6
      drivers/mtd/nand/nandsim.c

+ 0 - 6
drivers/mtd/nand/nandsim.c

@@ -760,12 +760,6 @@ static int init_nandsim(struct mtd_info *mtd)
 		ns->nbparts += 1;
 		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)
 	if (ns->busw == 16)
 		NS_WARN("16-bit flashes support wasn't tested\n");
 		NS_WARN("16-bit flashes support wasn't tested\n");