usb: Correct return value in usb_stor_info()
authorSimon Glass <sjg@chromium.org>
Wed, 16 Mar 2016 13:45:44 +0000 (07:45 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 22 Mar 2016 16:16:28 +0000 (12:16 -0400)
This should return 0 on success, not 1. Fix it.

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Marek Vasut <marex@denx.de>
Reviewed-by: Tom Rini <trini@konsulko.com>
common/usb_storage.c

index 83c8607cf4fcaef8016d770425bb5dc3984bfdfb..9285c95c0553b719016f6edf38ecc6c82f486c74 100644 (file)
@@ -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)