From b94fc8518eb60102fbc0fa46a84a43e02e0c0a6e Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Wed, 16 Mar 2016 07:45:44 -0600 Subject: 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 --- common/usb_storage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common') diff --git a/common/usb_storage.c b/common/usb_storage.c index 83c8607..9285c95 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) -- cgit v1.1