diff options
author | Masahiro Yamada <yamada.m@jp.panasonic.com> | 2013-07-11 17:29:57 +0900 |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2013-08-22 17:25:03 -0500 |
commit | 46aabcc446dbae5637f2b9106c1f2be9326c1018 (patch) | |
tree | 42092825abdbdd0b00a2c4d9ace003bb47e548e0 | |
parent | 7d25cd34e9d73ab7fff8f3c4283a11e50b0d204b (diff) | |
download | u-boot-imx-46aabcc446dbae5637f2b9106c1f2be9326c1018.zip u-boot-imx-46aabcc446dbae5637f2b9106c1f2be9326c1018.tar.gz u-boot-imx-46aabcc446dbae5637f2b9106c1f2be9326c1018.tar.bz2 |
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>
-rw-r--r-- | common/cmd_nand.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/cmd_nand.c b/common/cmd_nand.c index adc1ce4..04ab0f1 100644 --- a/common/cmd_nand.c +++ b/common/cmd_nand.c @@ -616,11 +616,11 @@ static int do_nand(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) opts.scrub = 1; else { puts("scrub aborted\n"); - return -1; + return 1; } } else { puts("scrub aborted\n"); - return -1; + return 1; } } ret = nand_erase_opts(nand, &opts); |