mirror of
https://github.com/torvalds/linux.git
synced 2024-12-01 16:41:39 +00:00
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>
This commit is contained in:
parent
4f2fe2d274
commit
4d6b5161db
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user