nand_util: delete a useless variable
Subsystems (2)
PATCH 1/1 nand_util: delete a useless variable
Signed-off-by Masahiro Yamada <[email protected]>
--- drivers/mtd/nand/nand_util.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/mtd/nand/nand_util.c +1 -2
@@ -73,7 +73,6 @@ int nand_erase_opts(nand_info_t *meminfo, const nand_erase_options_t *opts)struct jffs2_unknown_node cleanmarker;erase_info_t erase;unsigned long erase_length, erased_length;/* in blocks */ -int bbtest =1 ;int result;int percent_complete =-1 ;const char *mtd_device = meminfo->name;
@@ -124,7 +123,7 @@ int nand_erase_opts(nand_info_t *meminfo, const nand_erase_options_t *opts)puts ("Size of erase exceeds limit\n" );return -EFBIG ; } -if (!opts->scrub && bbtest) { +if (!opts->scrub) {int ret =mtd_block_isbad (meminfo, erase.addr);if (ret >0 ) {if (!opts->quiet)
Signature · 1 line
1.8.1.2
Quoted 5 lines · Masahiro Yamada
Signed-off-by Masahiro Yamada <[email protected]>---
drivers/mtd/nand/nand_util.c| 3 +--1 file changed, 1 insertion(+), 2 deletions(-)
Applied to u-boot-nand-flash
-Scott