USB, Storage: fix a bug introduced in commit
authorMarkus Klotzbuecher <mk@denx.de>
Wed, 26 Mar 2008 17:26:43 +0000 (18:26 +0100)
committerMarkus Klotzbuecher <mk@denx.de>
Wed, 26 Mar 2008 17:26:43 +0000 (18:26 +0100)
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>
common/usb_storage.c

index 81d2f92100eb54686f9a3f030ca7f851b4ff8fc5..d263b6c0d0ea61c31cf5d3cb2dd1fc586cfde724 100644 (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;
 }
 
 /*********************************************************************************