projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
cmd_usb.c: show cmd usage if no args given
[platform/kernel/u-boot.git]
/
common
/
cmd_usb.c
diff --git
a/common/cmd_usb.c
b/common/cmd_usb.c
index
ee3755c
..
fcb5f76
100644
(file)
--- a/
common/cmd_usb.c
+++ b/
common/cmd_usb.c
@@
-516,6
+516,11
@@
int do_usb(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
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();