提交 65d34254 编写于 作者: S Serge Ziryukin 提交者: Wolfgang Denk

cmd_usb.c: show cmd usage if no args given

Signed-off-by: NSerge Ziryukin <ftrvxmtrx@gmail.com>
上级 e4a95d11
......@@ -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();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册