mirror of
https://xff.cz/git/u-boot/
synced 2025-09-29 06:21:15 +02:00
cmd_nand: Do not show usage when scrub is aborted
When executing nand scrub, the user gets the prompt: Really scrub this NAND flash? <y/N> We do not want the annoying usage displayed when saying N here. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
This commit is contained in:
committed by
Scott Wood
parent
7d25cd34e9
commit
46aabcc446
@@ -616,11 +616,11 @@ static int do_nand(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
|||||||
opts.scrub = 1;
|
opts.scrub = 1;
|
||||||
else {
|
else {
|
||||||
puts("scrub aborted\n");
|
puts("scrub aborted\n");
|
||||||
return -1;
|
return 1;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
puts("scrub aborted\n");
|
puts("scrub aborted\n");
|
||||||
return -1;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ret = nand_erase_opts(nand, &opts);
|
ret = nand_erase_opts(nand, &opts);
|
||||||
|
Reference in New Issue
Block a user