Messages in this thread Patch in this message | | | Subject | [PATCH] drivers/usb/core/hcd.c: quiet NULL pointer sparse noise | Date | Fri, 16 Oct 2009 19:05:37 -0400 | From | "H Hartley Sweeten" <> |
| |
Quiet the following sparse noise:
warning: Using plain integer as NULL pointer
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
---
diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c index 34de475..5ca109a 100644 --- a/drivers/usb/core/hcd.c +++ b/drivers/usb/core/hcd.c @@ -1601,7 +1601,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;
| |