From: Simon Glass Date: Wed, 16 Mar 2016 13:45:44 +0000 (-0600) Subject: usb: Correct return value in usb_stor_info() X-Git-Tag: v2016.05-rc1~202 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b94fc8518eb60102fbc0fa46a84a43e02e0c0a6e;p=u-boot usb: Correct return value in usb_stor_info() This should return 0 on success, not 1. Fix it. Signed-off-by: Simon Glass Acked-by: Marek Vasut Reviewed-by: Tom Rini --- diff --git a/common/usb_storage.c b/common/usb_storage.c index 83c8607cf4..9285c95c05 100644 --- a/common/usb_storage.c +++ b/common/usb_storage.c @@ -193,7 +193,7 @@ int usb_stor_info(void) return 1; } - return 1; + return 0; } static unsigned int usb_get_max_lun(struct us_data *us)