summaryrefslogtreecommitdiff
path: root/drivers/mtd/nand/nand_util.c
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.m@jp.panasonic.com>2013-07-12 10:53:37 +0900
committerScott Wood <scottwood@freescale.com>2013-08-22 17:25:03 -0500
commit47b6dad319af3b0d059d1d16003f8ac73e98cdb0 (patch)
treec8a6d41a521003bcb7fea9fc2eb09b58fe579703 /drivers/mtd/nand/nand_util.c
parent46aabcc446dbae5637f2b9106c1f2be9326c1018 (diff)
downloadu-boot-imx-47b6dad319af3b0d059d1d16003f8ac73e98cdb0.zip
u-boot-imx-47b6dad319af3b0d059d1d16003f8ac73e98cdb0.tar.gz
u-boot-imx-47b6dad319af3b0d059d1d16003f8ac73e98cdb0.tar.bz2
nand_util: delete a useless variable
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Diffstat (limited to 'drivers/mtd/nand/nand_util.c')
-rw-r--r--drivers/mtd/nand/nand_util.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mtd/nand/nand_util.c b/drivers/mtd/nand/nand_util.c
index 1e0210a..d149a6d 100644
--- a/drivers/mtd/nand/nand_util.c
+++ b/drivers/mtd/nand/nand_util.c
@@ -51,7 +51,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;
@@ -102,7 +101,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)