commit | 84e20a20bb05e7993d0f6310ef140487105bde9f | [log] [tgz] |
---|---|---|
author | Serge Ziryukin <ftrvxmtrx@gmail.com> | Sun Apr 25 21:32:36 2010 +0300 |
committer | Wolfgang Denk <wd@denx.de> | Thu May 06 23:35:34 2010 +0200 |
tree | 2e8d8673981e6ca7fe0463e96c6074db215bc04a | |
parent | ed7aaf8fd0cd2055c21718a1dabb055a64d04a37 [diff] |
cmd_usb.c: show cmd usage if no args given Signed-off-by: Serge Ziryukin <ftrvxmtrx@gmail.com>
diff --git a/common/cmd_usb.c b/common/cmd_usb.c index ee3755c..fcb5f76 100644 --- a/common/cmd_usb.c +++ b/common/cmd_usb.c
@@ -516,6 +516,11 @@ block_dev_desc_t *stor_dev; #endif + if (argc < 2) { + cmd_usage(cmdtp); + return 1; + } + if ((strncmp(argv[1], "reset", 5) == 0) || (strncmp(argv[1], "start", 5) == 0)) { usb_stop();