cmd_onenand.c: Fix command usage help.
Running the onenand command without arguments does nothing, with this patch shows the command usage. Signed-off-by: Enric Balletbo i Serra <eballetbo@iseebcn.com>
This commit is contained in:
parent
0158126e25
commit
57ff9f2421
@ -535,6 +535,9 @@ static int do_onenand(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[]
|
||||
{
|
||||
cmd_tbl_t *c;
|
||||
|
||||
if (argc < 2)
|
||||
return cmd_usage(cmdtp);
|
||||
|
||||
mtd = &onenand_mtd;
|
||||
|
||||
/* Strip off leading 'onenand' command argument */
|
||||
|
Loading…
Reference in New Issue
Block a user