1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-10-22 10:31:56 +02:00

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>
This commit is contained in:
Aras Vaichas
2008-03-25 12:09:07 +11:00
committed by Markus Klotzbuecher
parent 18e69a35ef
commit f6b44e0e4d
2 changed files with 7 additions and 5 deletions

View File

@@ -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) {