aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRandy Dunlap <randy.dunlap@oracle.com>2007-03-16 21:33:13 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2007-04-27 16:28:36 -0400
commit686149f488e1912f29bcfc593fad4c18f0f75397 (patch)
treedbff7fda5b17d68e91f6e9d1e5032e9adeb3fdaf
parentcb8eaa8b2b913387a9a1d3d8fe48edfc1595ba3e (diff)
USB: dm9601: fix sparse NULL warnings
Fix sparse NULL warnings: drivers/usb/net/dm9601.c:88:23: warning: Using plain integer as NULL pointer drivers/usb/net/dm9601.c:174:22: warning: Using plain integer as NULL pointer Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Acked-by: Peter Korsgaard <jacmet@sunsite.dk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/usb/net/dm9601.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/usb/net/dm9601.c b/drivers/usb/net/dm9601.c
index 5130cc7eb314..a67638601477 100644
--- a/drivers/usb/net/dm9601.c
+++ b/drivers/usb/net/dm9601.c
@@ -12,6 +12,7 @@
12 12
13#include <linux/module.h> 13#include <linux/module.h>
14#include <linux/sched.h> 14#include <linux/sched.h>
15#include <linux/stddef.h>
15#include <linux/init.h> 16#include <linux/init.h>
16#include <linux/netdevice.h> 17#include <linux/netdevice.h>
17#include <linux/etherdevice.h> 18#include <linux/etherdevice.h>
@@ -85,7 +86,7 @@ static int dm_write_reg(struct usbnet *dev, u8 reg, u8 value)
85 usb_sndctrlpipe(dev->udev, 0), 86 usb_sndctrlpipe(dev->udev, 0),
86 DM_WRITE_REG, 87 DM_WRITE_REG,
87 USB_DIR_OUT | USB_TYPE_VENDOR |USB_RECIP_DEVICE, 88 USB_DIR_OUT | USB_TYPE_VENDOR |USB_RECIP_DEVICE,
88 value, reg, 0, 0, USB_CTRL_SET_TIMEOUT); 89 value, reg, NULL, 0, USB_CTRL_SET_TIMEOUT);
89} 90}
90 91
91static void dm_write_async_callback(struct urb *urb) 92static void dm_write_async_callback(struct urb *urb)
@@ -171,7 +172,7 @@ static void dm_write_reg_async(struct usbnet *dev, u8 reg, u8 value)
171 172
172 usb_fill_control_urb(urb, dev->udev, 173 usb_fill_control_urb(urb, dev->udev,
173 usb_sndctrlpipe(dev->udev, 0), 174 usb_sndctrlpipe(dev->udev, 0),
174 (void *)req, 0, 0, dm_write_async_callback, req); 175 (void *)req, NULL, 0, dm_write_async_callback, req);
175 176
176 status = usb_submit_urb(urb, GFP_ATOMIC); 177 status = usb_submit_urb(urb, GFP_ATOMIC);
177 if (status < 0) { 178 if (status < 0) {