mirror of
https://github.com/torvalds/linux.git
synced 2024-11-15 00:21:59 +00:00
USB: core: hub: fix sparse warning
Fix the following sparse warning: drivers/usb/core/hub.c:1664:37: warning: Using plain integer as NULL pointer Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
719a6e8876
commit
2eb5052e2a
@ -1676,7 +1676,7 @@ static int usb_configure_device_otg(struct usb_device *udev)
|
||||
if (!udev->bus->is_b_host
|
||||
&& udev->config
|
||||
&& udev->parent == udev->bus->root_hub) {
|
||||
struct usb_otg_descriptor *desc = 0;
|
||||
struct usb_otg_descriptor *desc = NULL;
|
||||
struct usb_bus *bus = udev->bus;
|
||||
|
||||
/* descriptor may appear anywhere in config */
|
||||
|
Loading…
Reference in New Issue
Block a user