aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/core
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@freescale.com>2014-08-18 20:56:21 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-08-19 12:28:53 -0400
commit5b1dc209d68c5fd223b7bd865a5cabad043dbc07 (patch)
tree51f04f08b1e304adab1453b9277702657a38ef9f /drivers/usb/core
parent194f74ebc68f0655d40e9cb4e8a70ef8e8d4d261 (diff)
usb: core: fix below build warning
linux-2.6/drivers/usb/core/hub.c: In function 'usb_disconnect': linux-2.6/drivers/usb/core/hub.c:2110: warning: 'hub' may be used uninitialized in this function linux-2.6/drivers/usb/core/hub.c:2111: warning: 'port1' may be used uninitialized in this function Signed-off-by: Peter Chen <peter.chen@freescale.com> Acked-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/core')
-rw-r--r--drivers/usb/core/hub.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
index e0eaeb8697bb..97deb8e6b594 100644
--- a/drivers/usb/core/hub.c
+++ b/drivers/usb/core/hub.c
@@ -2107,8 +2107,8 @@ void usb_disconnect(struct usb_device **pdev)
2107{ 2107{
2108 struct usb_port *port_dev = NULL; 2108 struct usb_port *port_dev = NULL;
2109 struct usb_device *udev = *pdev; 2109 struct usb_device *udev = *pdev;
2110 struct usb_hub *hub; 2110 struct usb_hub *hub = NULL;
2111 int port1; 2111 int port1 = 1;
2112 2112
2113 /* mark the device as inactive, so any further urb submissions for 2113 /* mark the device as inactive, so any further urb submissions for
2114 * this device (and any of its children) will fail immediately. 2114 * this device (and any of its children) will fail immediately.