Patchwork [U-Boot] nand_util: delete a useless variable

login
register
mail settings
Submitter Masahiro Yamada
Date July 12, 2013, 1:53 a.m.
Message ID <1373594017-935-1-git-send-email-yamada.m@jp.panasonic.com>
Download mbox | patch
Permalink /patch/258675/
State Accepted
Delegated to: Scott Wood
Headers show

Comments

Masahiro Yamada - July 12, 2013, 1:53 a.m.
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
---
 drivers/mtd/nand/nand_util.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
Scott Wood - Aug. 22, 2013, 10:51 p.m.
On Fri, Jul 12, 2013 at 10:53:37AM +0900, Masahiro Yamada wrote:
> Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
> 
> ---
> drivers/mtd/nand/nand_util.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)

Applied to u-boot-nand-flash

-Scott

Patch

diff --git a/drivers/mtd/nand/nand_util.c b/drivers/mtd/nand/nand_util.c
index 1d22b52..bf74fe8 100644
--- a/drivers/mtd/nand/nand_util.c
+++ b/drivers/mtd/nand/nand_util.c
@@ -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)