projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46aabcc
)
nand_util: delete a useless variable
author
Masahiro Yamada
<yamada.m@jp.panasonic.com>
Fri, 12 Jul 2013 01:53:37 +0000
(10:53 +0900)
committer
Scott Wood
<scottwood@freescale.com>
Thu, 22 Aug 2013 22:25:03 +0000
(17:25 -0500)
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
drivers/mtd/nand/nand_util.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/nand_util.c
b/drivers/mtd/nand/nand_util.c
index 1e0210a9a416a7513149466a443bc990115da24b..d149a6dae67f4d89b1bbe72b4a4d18a951564c8d 100644
(file)
--- 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)