Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0eb1bd21 authored by Randy Dunlap's avatar Randy Dunlap Committed by David S. Miller
Browse files

[IRDA] irda-usb: use NULL instead of 0



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: default avatarRandy Dunlap <rdunlap@xenotime.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0182bd2b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;