diff options
| author | Markus Klotzbuecher <mk@denx.de> | 2008-03-26 18:26:43 +0100 | 
|---|---|---|
| committer | Markus Klotzbuecher <mk@denx.de> | 2008-03-26 18:26:43 +0100 | 
| commit | b9e749e95354f33eb5dc6653c6db7d502adb95fe (patch) | |
| tree | 0a0e0574e6130f4969e0bc944cc2999ece7b00dc /common/usb_storage.c | |
| parent | 841e5edd1623f3fecb6bffc5c2f938ed7a947360 (diff) | |
| download | olio-uboot-2014.01-b9e749e95354f33eb5dc6653c6db7d502adb95fe.tar.xz olio-uboot-2014.01-b9e749e95354f33eb5dc6653c6db7d502adb95fe.zip | |
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>
Diffstat (limited to 'common/usb_storage.c')
| -rw-r--r-- | common/usb_storage.c | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/common/usb_storage.c b/common/usb_storage.c index 81d2f9210..d263b6c0d 100644 --- a/common/usb_storage.c +++ b/common/usb_storage.c @@ -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;  }  /********************************************************************************* |