[U-Boot] [PATCH 14/14] usb: Correct return value in usb_stor_info()
Simon Glass
sjg at chromium.org
Wed Mar 16 14:45:44 CET 2016
This should return 0 on success, not 1. Fix it.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
common/usb_storage.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/common/usb_storage.c b/common/usb_storage.c
index 1472824..18fdf73 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)
--
2.7.0.rc3.207.g0ac5344
More information about the U-Boot
mailing list