mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-04 10:43:35 +00:00
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
1 changed files with 3 additions and 0 deletions
|
@ -535,6 +535,9 @@ static int do_onenand(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[]
|
||||||
{
|
{
|
||||||
cmd_tbl_t *c;
|
cmd_tbl_t *c;
|
||||||
|
|
||||||
|
if (argc < 2)
|
||||||
|
return cmd_usage(cmdtp);
|
||||||
|
|
||||||
mtd = &onenand_mtd;
|
mtd = &onenand_mtd;
|
||||||
|
|
||||||
/* Strip off leading 'onenand' command argument */
|
/* Strip off leading 'onenand' command argument */
|
||||||
|
|
Loading…
Add table
Reference in a new issue