summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-03-16 07:45:44 -0600
committerTom Rini <trini@konsulko.com>2016-03-22 12:16:28 -0400
commitb94fc8518eb60102fbc0fa46a84a43e02e0c0a6e (patch)
tree87847cec547ef8c2d6c941a6820396fd2dd6c162 /common
parent5b15a2596f7852177c7f451349b353e6e52742a2 (diff)
downloadu-boot-b94fc8518eb60102fbc0fa46a84a43e02e0c0a6e.tar.gz
usb: Correct return value in usb_stor_info()
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>
Diffstat (limited to 'common')
-rw-r--r--common/usb_storage.c2
1 files changed, 1 insertions, 1 deletions
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)