USB, Storage: fix a bug introduced in commit

f6b44e0e4d that will cause usb_stor_info
to only print only information on one storage device, but not for
multiple.

Signed-off-by: Markus Klotzbuecher <mk@denx.de>
This commit is contained in:
Markus Klotzbuecher 2008-03-26 18:26:43 +01:00
parent 841e5edd16
commit b9e749e953

View file

@ -196,12 +196,12 @@ int usb_stor_info(void)
for (i = 0; i < usb_max_devs; i++) {
printf (" Device %d: ", i);
dev_print(&usb_dev_desc[i]);
return 0;
}
} else {
printf("No storage devices, perhaps not 'usb start'ed..?\n");
return 1;
return 0;
}
printf("No storage devices, perhaps not 'usb start'ed..?\n");
return 1;
}
/*********************************************************************************