1
0
Fork 0
mirror of https://github.com/u-boot/u-boot.git synced 2025-04-26 07:17:10 +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:
Enric Balletbo i Serra 2010-10-19 11:13:21 +02:00 committed by Wolfgang Denk
parent 0158126e25
commit 57ff9f2421

View file

@ -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 */