]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
cmd_nand: Do not show usage when scrub is aborted
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Thu, 11 Jul 2013 08:29:57 +0000 (17:29 +0900)
committerScott Wood <scottwood@freescale.com>
Thu, 22 Aug 2013 22:25:03 +0000 (17:25 -0500)
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>
common/cmd_nand.c

index adc1ce443538f0e6a6da16bf7ea3641eb3399208..04ab0f19be05d911541567e09b12279984715a2a 100644 (file)
@@ -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);