[PATCH] drivers/usb/core/hcd.c: quiet NULL pointer sparse noise

From: H Hartley Sweeten
Date: Fri Oct 16 2009 - 19:05:46 EST


Quiet the following sparse noise:

warning: Using plain integer as NULL pointer

Signed-off-by: H Hartley Sweeten <hsweeten@xxxxxxxxxxxxxxxxxxx>

---

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;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/