Skip to content
Snippets Groups Projects
Commit 46aabcc4 authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Scott Wood
Browse files

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: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
parent 7d25cd34
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment