linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] libertas: fix "warning: Using plain integer as NULL pointer" sparse warnings
@ 2007-10-08  9:41 Holger Schurig
  2007-10-08  9:47 ` Holger Schurig
  0 siblings, 1 reply; 3+ messages in thread
From: Holger Schurig @ 2007-10-08  9:41 UTC (permalink / raw)
  To: libertas-dev, linux-wireless, Dan Williams

Subject says it all.

Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>

Index: libertas-2.6/drivers/net/wireless/libertas/scan.c
===================================================================
--- libertas-2.6.orig/drivers/net/wireless/libertas/scan.c	
2007-10-08 12:40:31.000000000 +0200
+++ libertas-2.6/drivers/net/wireless/libertas/scan.c	2007-10-08 
12:40:41.000000000 +0200
@@ -578,7 +578,7 @@ static int wlan_scan_channel_list(wlan_p
 
 	lbs_deb_enter(LBS_DEB_ASSOC);
 
-	if (pscancfgout == 0 || pchantlvout == 0 || pscanchanlist == 0) 
{
+	if (pscancfgout == NULL || pchantlvout == NULL || pscanchanlist 
== NULL) {
 		lbs_deb_scan("Scan: Null detect: %p, %p, %p\n",
 		       pscancfgout, pchantlvout, pscanchanlist);
 		return -1;

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] libertas: fix "warning: Using plain integer as NULL pointer" sparse warnings
  2007-10-08  9:41 [PATCH] libertas: fix "warning: Using plain integer as NULL pointer" sparse warnings Holger Schurig
@ 2007-10-08  9:47 ` Holger Schurig
  2007-10-08  9:56   ` Johannes Berg
  0 siblings, 1 reply; 3+ messages in thread
From: Holger Schurig @ 2007-10-08  9:47 UTC (permalink / raw)
  To: linux-wireless

Hmm, I had "wordwrap" turned on :-(

checkpatch.pl barks on this patch anyway, because of the
ridiculus 80 columns restriction it wants to impose. Should I 
rephrase the patch because of this or just ignore this 
checkpatch warning?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] libertas: fix "warning: Using plain integer as NULL pointer" sparse warnings
  2007-10-08  9:47 ` Holger Schurig
@ 2007-10-08  9:56   ` Johannes Berg
  0 siblings, 0 replies; 3+ messages in thread
From: Johannes Berg @ 2007-10-08  9:56 UTC (permalink / raw)
  To: Holger Schurig; +Cc: linux-wireless

[-- Attachment #1: Type: text/plain, Size: 411 bytes --]

On Mon, 2007-10-08 at 11:47 +0200, Holger Schurig wrote:

> checkpatch.pl barks on this patch anyway, because of the
> ridiculus 80 columns restriction it wants to impose. Should I 
> rephrase the patch because of this or just ignore this 
> checkpatch warning?

Personally, I'd prefer it written as "extended booleans" anyway:

+       if (!pscancfgout || !pchantlvout || !pscanchanlist)

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-10-08  9:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-08  9:41 [PATCH] libertas: fix "warning: Using plain integer as NULL pointer" sparse warnings Holger Schurig
2007-10-08  9:47 ` Holger Schurig
2007-10-08  9:56   ` Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).