Skip to content

Commit

Permalink
USB: core: hub: fix sparse warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Felipe Balbi authored and Greg Kroah-Hartman committed Dec 11, 2009
1 parent 719a6e8 commit 2eb5052
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/core/hub.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 2eb5052

Please sign in to comment.