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:
committed by
Markus Klotzbuecher
parent
18e69a35ef
commit
f6b44e0e4d
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user