diff options
author | Enric Balletbo i Serra <eballetbo@iseebcn.com> | 2010-10-19 13:13:21 +0400 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2010-10-27 22:51:22 +0400 |
commit | 57ff9f2421244db4f27649d1e13393d2b85f224d (patch) | |
tree | 27829ae45a0a288f39f09ec033813430f59dae6d | |
parent | 0158126e252b6860e7a7d8408d0872278a3483cf (diff) | |
download | u-boot-57ff9f2421244db4f27649d1e13393d2b85f224d.tar.xz |
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>
-rw-r--r-- | common/cmd_onenand.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/cmd_onenand.c b/common/cmd_onenand.c index fe84c3be96..5550b40b81 100644 --- a/common/cmd_onenand.c +++ b/common/cmd_onenand.c @@ -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 */ |