commit | a915394693acb72ebf91af377e6d8e6d1fe92efe | [log] [tgz] |
---|---|---|
author | Enric Balletbo i Serra <eballetbo@iseebcn.com> | Tue Oct 19 11:13:21 2010 +0200 |
committer | Wolfgang Denk <wd@denx.de> | Wed Oct 27 20:51:22 2010 +0200 |
tree | 27829ae45a0a288f39f09ec033813430f59dae6d | |
parent | 6b405b781d2990dbf875dbaab46f935b635cca44 [diff] |
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>
diff --git a/common/cmd_onenand.c b/common/cmd_onenand.c index fe84c3b..5550b40 100644 --- a/common/cmd_onenand.c +++ b/common/cmd_onenand.c
@@ -535,6 +535,9 @@ { cmd_tbl_t *c; + if (argc < 2) + return cmd_usage(cmdtp); + mtd = &onenand_mtd; /* Strip off leading 'onenand' command argument */