Commit b9e749e95354f33eb5dc6653c6db7d502adb95fe
1 parent
841e5edd16
Exists in
master
and in
54 other branches
USB, Storage: fix a bug introduced in commit
f6b44e0e4d18fe507833a0f76d24a9aa72c123f1 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>
Showing 1 changed file with 4 additions and 4 deletions Side-by-side Diff
common/usb_storage.c
... | ... | @@ -196,12 +196,12 @@ |
196 | 196 | for (i = 0; i < usb_max_devs; i++) { |
197 | 197 | printf (" Device %d: ", i); |
198 | 198 | dev_print(&usb_dev_desc[i]); |
199 | - return 0; | |
200 | 199 | } |
201 | - } else { | |
202 | - printf("No storage devices, perhaps not 'usb start'ed..?\n"); | |
203 | - return 1; | |
200 | + return 0; | |
204 | 201 | } |
202 | + | |
203 | + printf("No storage devices, perhaps not 'usb start'ed..?\n"); | |
204 | + return 1; | |
205 | 205 | } |
206 | 206 | |
207 | 207 | /********************************************************************************* |