summaryrefslogtreecommitdiff
path: root/drivers/usb/host/ohci-jz4740.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2014-04-14 12:08:13 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-04-16 13:59:40 -0700
commit4d6b5161dba1aa1964e505d2a09bfe4e3a1a7378 (patch)
tree60b1facf7cd7ff82d64a9906a1d6416d33cb461f /drivers/usb/host/ohci-jz4740.c
parent4f2fe2d27472f4a5dbd875888af4fc5175f3fdc5 (diff)
USB: ohci-jz4740: Fix uninitialized variable warning
The ret variable is not initialized in all code paths of the ohci_jz4740_hub_control function. Fix it. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Lars-Peter Clausen <lars@metafoo.de> Acked-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/ohci-jz4740.c')
-rw-r--r--drivers/usb/host/ohci-jz4740.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/ohci-jz4740.c b/drivers/usb/host/ohci-jz4740.c
index af8dc1b92d75..b34315ca6cff 100644
--- a/drivers/usb/host/ohci-jz4740.c
+++ b/drivers/usb/host/ohci-jz4740.c
@@ -82,7 +82,7 @@ static int ohci_jz4740_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue,
u16 wIndex, char *buf, u16 wLength)
{
struct jz4740_ohci_hcd *jz4740_ohci = hcd_to_jz4740_hcd(hcd);
- int ret;
+ int ret = 0;
switch (typeReq) {
case SetHubFeature: