summaryrefslogtreecommitdiff
path: root/common/cmd_nand.c
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.m@jp.panasonic.com>2013-07-11 17:29:57 +0900
committerScott Wood <scottwood@freescale.com>2013-08-22 17:25:03 -0500
commit46aabcc446dbae5637f2b9106c1f2be9326c1018 (patch)
tree42092825abdbdd0b00a2c4d9ace003bb47e548e0 /common/cmd_nand.c
parent7d25cd34e9d73ab7fff8f3c4283a11e50b0d204b (diff)
downloadu-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>
Diffstat (limited to 'common/cmd_nand.c')
-rw-r--r--common/cmd_nand.c4
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);