diff options
author | Aras Vaichas <arasv@magtech.com.au> | 2008-03-25 01:09:07 (GMT) |
---|---|---|
committer | Markus Klotzbuecher <mk@denx.de> | 2008-03-26 08:23:23 (GMT) |
commit | f6b44e0e4d18fe507833a0f76d24a9aa72c123f1 (patch) | |
tree | 552473178f816413f99dc24f4b188f447c18464d /common/cmd_usb.c | |
parent | 18e69a35efbb078403db0c0063986470dad7d082 (diff) | |
download | u-boot-fsl-qoriq-f6b44e0e4d18fe507833a0f76d24a9aa72c123f1.tar.xz |
USB Storage, add meaningful return value
This patch changes the "usb storage" command to return success if it
finds a USB storage device, otherwise it returns error.
Signed-off-by: Markus Klotzbuecher <mk@denx.de>
Diffstat (limited to 'common/cmd_usb.c')
-rw-r--r-- | common/cmd_usb.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/common/cmd_usb.c b/common/cmd_usb.c index c6b17c2..ad32407 100644 --- a/common/cmd_usb.c +++ b/common/cmd_usb.c @@ -529,8 +529,7 @@ int do_usb (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) } if (strncmp(argv[1], "stor", 4) == 0) { - usb_stor_info(); - return 0; + return usb_stor_info(); } if (strncmp(argv[1],"part",4) == 0) { |