USB: hcd.c: quiet NULL pointer sparse noise
authorH Hartley Sweeten <hartleys@visionengravers.com>
Tue, 17 Nov 2009 22:53:41 +0000 (14:53 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Dec 2009 19:55:21 +0000 (11:55 -0800)
Quiet the following sparse noise:

  warning: Using plain integer as NULL pointer

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/hcd.c

index 026ab2fe5c2d5d6d4abaa87e6ae83527da667a2f..daac0427bfd55e2d9b9f56501e0f9575fe0e7914 100644 (file)
@@ -1607,7 +1607,7 @@ int usb_hcd_check_bandwidth(struct usb_device *udev,
 {
        int num_intfs, i, j;
        struct usb_interface_cache *intf_cache;
-       struct usb_host_interface *alt = 0;
+       struct usb_host_interface *alt = NULL;
        int ret = 0;
        struct usb_hcd *hcd;
        struct usb_host_endpoint *ep;