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>
This commit is contained in:
Родитель
194f74ebc6
Коммит
5b1dc209d6
|
@ -2107,8 +2107,8 @@ void usb_disconnect(struct usb_device **pdev)
|
||||||
{
|
{
|
||||||
struct usb_port *port_dev = NULL;
|
struct usb_port *port_dev = NULL;
|
||||||
struct usb_device *udev = *pdev;
|
struct usb_device *udev = *pdev;
|
||||||
struct usb_hub *hub;
|
struct usb_hub *hub = NULL;
|
||||||
int port1;
|
int port1 = 1;
|
||||||
|
|
||||||
/* mark the device as inactive, so any further urb submissions for
|
/* mark the device as inactive, so any further urb submissions for
|
||||||
* this device (and any of its children) will fail immediately.
|
* this device (and any of its children) will fail immediately.
|
||||||
|
|
Загрузка…
Ссылка в новой задаче