diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2014-04-14 12:08:13 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-04-16 13:59:40 -0700 |
commit | 4d6b5161dba1aa1964e505d2a09bfe4e3a1a7378 (patch) | |
tree | 60b1facf7cd7ff82d64a9906a1d6416d33cb461f /drivers/usb | |
parent | 4f2fe2d27472f4a5dbd875888af4fc5175f3fdc5 (diff) | |
download | op-kernel-dev-4d6b5161dba1aa1964e505d2a09bfe4e3a1a7378.zip op-kernel-dev-4d6b5161dba1aa1964e505d2a09bfe4e3a1a7378.tar.gz |
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')
-rw-r--r-- | drivers/usb/host/ohci-jz4740.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/ohci-jz4740.c b/drivers/usb/host/ohci-jz4740.c index af8dc1b..b34315c 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: |