mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-20 20:04:46 +00:00
cmd_usb.c: show cmd usage if no args given
Signed-off-by: Serge Ziryukin <ftrvxmtrx@gmail.com>
This commit is contained in:
parent
e4a95d112e
commit
65d342541e
1 changed files with 5 additions and 0 deletions
|
@ -516,6 +516,11 @@ int do_usb(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
|
||||||
block_dev_desc_t *stor_dev;
|
block_dev_desc_t *stor_dev;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (argc < 2) {
|
||||||
|
cmd_usage(cmdtp);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
if ((strncmp(argv[1], "reset", 5) == 0) ||
|
if ((strncmp(argv[1], "reset", 5) == 0) ||
|
||||||
(strncmp(argv[1], "start", 5) == 0)) {
|
(strncmp(argv[1], "start", 5) == 0)) {
|
||||||
usb_stop();
|
usb_stop();
|
||||||
|
|
Loading…
Add table
Reference in a new issue