]> err.no Git - linux-2.6/commitdiff
[IRDA] irda-usb: use NULL instead of 0
authorRandy Dunlap <rdunlap@xenotime.net>
Sun, 7 May 2006 01:34:10 +0000 (18:34 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 7 May 2006 01:34:10 +0000 (18:34 -0700)
Use NULL instead of 0 for a null pointer value (sparse warning):

drivers/net/irda/irda-usb.c:1781:30: warning: Using plain integer as NULL pointer

Also, correct timeout argument to use milliseconds instead of jiffies.

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/irda/irda-usb.c

index 96bdb73c2283bb3cbcd8bcdc964062f660b5f15d..cd87593e4e8ae6cfe464a5926c91d1db9469b5e0 100644 (file)
@@ -1778,7 +1778,7 @@ static int irda_usb_probe(struct usb_interface *intf,
 
        if (self->needspatch) {
                ret = usb_control_msg (self->usbdev, usb_sndctrlpipe (self->usbdev, 0),
-                                      0x02, 0x40, 0, 0, 0, 0, msecs_to_jiffies(500));
+                                      0x02, 0x40, 0, 0, NULL, 0, 500);
                if (ret < 0) {
                        IRDA_DEBUG (0, "usb_control_msg failed %d\n", ret);
                        goto err_out_3;