From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Ortiz Date: Thu, 26 Jan 2012 20:23:47 +0000 Subject: Re: [patch] nfc: NULL vs zero in nci_activate_target() Message-Id: <20120126202347.GA2305@sortiz-mobl> List-Id: References: <20120126061330.GA15856@elgon.mountain> In-Reply-To: <20120126061330.GA15856@elgon.mountain> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Dan Carpenter Cc: Lauro Ramos Venancio , Aloisio Almeida Jr , "David S. Miller" , "John W. Linville" , Ilan Elias , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, kernel-janitors@vger.kernel.org Hi Dan, On Thu, Jan 26, 2012 at 09:13:31AM +0300, Dan Carpenter wrote: > This is a pointer so it should be NULL instead of zero. Sparse > complains about this stuff: > net/nfc/nci/core.c:447:37: warning: Using plain integer as NULL pointer > > Signed-off-by: Dan Carpenter Acked-by: Samuel Ortiz Cheers, Samuel. -- Intel Open Source Technology Centre http://oss.intel.com/ From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mga09.intel.com ([134.134.136.24]:49232 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752109Ab2AZURl (ORCPT ); Thu, 26 Jan 2012 15:17:41 -0500 Date: Thu, 26 Jan 2012 21:23:47 +0100 From: Samuel Ortiz To: Dan Carpenter Cc: Lauro Ramos Venancio , Aloisio Almeida Jr , "David S. Miller" , "John W. Linville" , Ilan Elias , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [patch] nfc: NULL vs zero in nci_activate_target() Message-ID: <20120126202347.GA2305@sortiz-mobl> (sfid-20120126_211751_384689_68FD8506) References: <20120126061330.GA15856@elgon.mountain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20120126061330.GA15856@elgon.mountain> Sender: linux-wireless-owner@vger.kernel.org List-ID: Hi Dan, On Thu, Jan 26, 2012 at 09:13:31AM +0300, Dan Carpenter wrote: > This is a pointer so it should be NULL instead of zero. Sparse > complains about this stuff: > net/nfc/nci/core.c:447:37: warning: Using plain integer as NULL pointer > > Signed-off-by: Dan Carpenter Acked-by: Samuel Ortiz Cheers, Samuel. -- Intel Open Source Technology Centre http://oss.intel.com/ From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Ortiz Subject: Re: [patch] nfc: NULL vs zero in nci_activate_target() Date: Thu, 26 Jan 2012 21:23:47 +0100 Message-ID: <20120126202347.GA2305@sortiz-mobl> References: <20120126061330.GA15856@elgon.mountain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Lauro Ramos Venancio , Aloisio Almeida Jr , "David S. Miller" , "John W. Linville" , Ilan Elias , linux-wireless-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, kernel-janitors-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Dan Carpenter Return-path: Content-Disposition: inline In-Reply-To: <20120126061330.GA15856-mgFCXtclrQlZLf2FXnZxJA@public.gmane.org> Sender: linux-wireless-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: netdev.vger.kernel.org Hi Dan, On Thu, Jan 26, 2012 at 09:13:31AM +0300, Dan Carpenter wrote: > This is a pointer so it should be NULL instead of zero. Sparse > complains about this stuff: > net/nfc/nci/core.c:447:37: warning: Using plain integer as NULL pointer > > Signed-off-by: Dan Carpenter Acked-by: Samuel Ortiz Cheers, Samuel. -- Intel Open Source Technology Centre http://oss.intel.com/ -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html