linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Holger Schurig <hs4233@mail.mn-solutions.de>
To: libertas-dev@lists.infradead.org, linux-wireless@vger.kernel.org,
	Dan Williams <dcbw@redhat.com>
Subject: [PATCH] libertas: fix "warning: Using plain integer as NULL pointer" sparse warnings
Date: Mon, 8 Oct 2007 11:41:23 +0200	[thread overview]
Message-ID: <200710081141.23237.hs4233@mail.mn-solutions.de> (raw)

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;

             reply	other threads:[~2007-10-08  9:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-08  9:41 Holger Schurig [this message]
2007-10-08  9:47 ` [PATCH] libertas: fix "warning: Using plain integer as NULL pointer" sparse warnings Holger Schurig
2007-10-08  9:56   ` Johannes Berg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200710081141.23237.hs4233@mail.mn-solutions.de \
    --to=hs4233@mail.mn-solutions.de \
    --cc=dcbw@redhat.com \
    --cc=libertas-dev@lists.infradead.org \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).