mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-28 01:51:33 +00:00
nand_util: delete a useless variable
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
This commit is contained in:
parent
46aabcc446
commit
47b6dad319
1 changed files with 1 additions and 2 deletions
|
@ -51,7 +51,6 @@ int nand_erase_opts(nand_info_t *meminfo, const nand_erase_options_t *opts)
|
||||||
struct jffs2_unknown_node cleanmarker;
|
struct jffs2_unknown_node cleanmarker;
|
||||||
erase_info_t erase;
|
erase_info_t erase;
|
||||||
unsigned long erase_length, erased_length; /* in blocks */
|
unsigned long erase_length, erased_length; /* in blocks */
|
||||||
int bbtest = 1;
|
|
||||||
int result;
|
int result;
|
||||||
int percent_complete = -1;
|
int percent_complete = -1;
|
||||||
const char *mtd_device = meminfo->name;
|
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");
|
puts("Size of erase exceeds limit\n");
|
||||||
return -EFBIG;
|
return -EFBIG;
|
||||||
}
|
}
|
||||||
if (!opts->scrub && bbtest) {
|
if (!opts->scrub) {
|
||||||
int ret = mtd_block_isbad(meminfo, erase.addr);
|
int ret = mtd_block_isbad(meminfo, erase.addr);
|
||||||
if (ret > 0) {
|
if (ret > 0) {
|
||||||
if (!opts->quiet)
|
if (!opts->quiet)
|
||||||
|
|
Loading…
Add table
Reference in a new issue