diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-04-30 18:03:41 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-05-14 13:00:26 -0400 |
commit | af3d305ca71fea5dfdeba4bcecf2f91fa16dfa9d (patch) | |
tree | 01f602e9c00783c3d1d9a9dbcf9f898c89b06d84 /drivers/usb/host/ohci-sm501.c | |
parent | 220264733d3fb126c5ffd71ce897d918ce491c62 (diff) |
usb: fix integer as NULL pointer warnings found by sparse
drivers/usb/host/ohci-sm501.c:93:24: warning: Using plain integer as NULL pointer
drivers/usb/gadget/amd5536udc.c:3254:9: warning: Using plain integer as NULL pointer
drivers/usb/gadget/amd5536udc.c:3267:9: warning: Using plain integer as NULL pointer
drivers/usb/gadget/amd5536udc.c:3277:9: warning: Using plain integer as NULL pointer
drivers/usb/gadget/amd5536udc.c:3285:9: warning: Using plain integer as NULL pointer
drivers/usb/gadget/amd5536udc.c:3293:9: warning: Using plain integer as NULL pointer
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host/ohci-sm501.c')
-rw-r--r-- | drivers/usb/host/ohci-sm501.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/ohci-sm501.c b/drivers/usb/host/ohci-sm501.c index 77204f001b9a..e899a77dfb83 100644 --- a/drivers/usb/host/ohci-sm501.c +++ b/drivers/usb/host/ohci-sm501.c | |||
@@ -90,7 +90,7 @@ static int ohci_hcd_sm501_drv_probe(struct platform_device *pdev) | |||
90 | struct device *dev = &pdev->dev; | 90 | struct device *dev = &pdev->dev; |
91 | struct resource *res, *mem; | 91 | struct resource *res, *mem; |
92 | int retval, irq; | 92 | int retval, irq; |
93 | struct usb_hcd *hcd = 0; | 93 | struct usb_hcd *hcd = NULL; |
94 | 94 | ||
95 | irq = retval = platform_get_irq(pdev, 0); | 95 | irq = retval = platform_get_irq(pdev, 0); |
96 | if (retval < 0) | 96 | if (retval < 0) |