diff options
| author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2014-04-14 06:08:13 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-04-16 16:59:40 -0400 |
| commit | 4d6b5161dba1aa1964e505d2a09bfe4e3a1a7378 (patch) | |
| tree | 60b1facf7cd7ff82d64a9906a1d6416d33cb461f | |
| parent | 4f2fe2d27472f4a5dbd875888af4fc5175f3fdc5 (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>
| -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 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, | |||
| 82 | u16 wIndex, char *buf, u16 wLength) | 82 | u16 wIndex, char *buf, u16 wLength) |
| 83 | { | 83 | { |
| 84 | struct jz4740_ohci_hcd *jz4740_ohci = hcd_to_jz4740_hcd(hcd); | 84 | struct jz4740_ohci_hcd *jz4740_ohci = hcd_to_jz4740_hcd(hcd); |
| 85 | int ret; | 85 | int ret = 0; |
| 86 | 86 | ||
| 87 | switch (typeReq) { | 87 | switch (typeReq) { |
| 88 | case SetHubFeature: | 88 | case SetHubFeature: |
