Commit 57ff9f24 authored by Enric Balletbo i Serra's avatar Enric Balletbo i Serra Committed by Wolfgang Denk

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: default avatarEnric Balletbo i Serra <>
parent 0158126e
......@@ -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 */
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment