summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorHolger Schurig <hs4233@mail.mn-solutions.de>2007-10-08 12:20:04 +0200
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 16:55:20 -0700
commit314a886f08d689cdcf10bd8e4777a3d9f483bb53 (patch)
tree4a1eb2547fb30a21fb30dd0ecdd650e219404854 /drivers/net/wireless
parent8b17d7234c7039b668739e1868f3d5544d79a4c0 (diff)
downloadblackbird-op-linux-314a886f08d689cdcf10bd8e4777a3d9f483bb53.tar.gz
blackbird-op-linux-314a886f08d689cdcf10bd8e4777a3d9f483bb53.zip
[PATCH] libertas: fix "warning: Using plain integer as NULL pointer" sparse warnings
This fixes three "warning: Using plain integer as NULL pointer" sparse warnings. Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/libertas/scan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/libertas/scan.c b/drivers/net/wireless/libertas/scan.c
index fab93d8fe9c7..dcce354e904c 100644
--- a/drivers/net/wireless/libertas/scan.c
+++ b/drivers/net/wireless/libertas/scan.c
@@ -578,7 +578,7 @@ static int wlan_scan_channel_list(wlan_private * priv,
lbs_deb_enter(LBS_DEB_ASSOC);
- if (pscancfgout == 0 || pchantlvout == 0 || pscanchanlist == 0) {
+ if (!pscancfgout || !pchantlvout || !pscanchanlist) {
lbs_deb_scan("Scan: Null detect: %p, %p, %p\n",
pscancfgout, pchantlvout, pscanchanlist);
return -1;
OpenPOWER on IntegriCloud