From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Randy.Dunlap" Subject: [PATCH] irda-usb: use NULL instead of 0 Date: Mon, 1 May 2006 15:08:07 -0700 Message-ID: <20060501150807.b05fe450.rdunlap@xenotime.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: jgarzik Return-path: Received: from xenotime.net ([66.160.160.81]:12998 "HELO xenotime.net") by vger.kernel.org with SMTP id S932279AbWEAWFo (ORCPT ); Mon, 1 May 2006 18:05:44 -0400 Received: from midway.site ([71.111.157.99]) by xenotime.net for ; Mon, 1 May 2006 15:05:42 -0700 To: netdev Sender: netdev-owner@vger.kernel.org List-Id: netdev.vger.kernel.org From: Randy Dunlap 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 Signed-off-by: Randy Dunlap --- drivers/net/irda/irda-usb.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) --- linux-2617-rc3.orig/drivers/net/irda/irda-usb.c +++ linux-2617-rc3/drivers/net/irda/irda-usb.c @@ -1778,7 +1778,7 @@ static int irda_usb_probe(struct usb_int 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, msecs_to_jiffies(500)); if (ret < 0) { IRDA_DEBUG (0, "usb_control_msg failed %d\n", ret); goto err_out_3; ---