[PATCH, take 2] libertas: fix "warning: Using plain integer as NULL pointer" sparse warnings
Holger Schurig
hs4233 at mail.mn-solutions.de
Mon Oct 8 06:20:04 EDT 2007
This fixes three "warning: Using plain integer as NULL pointer"
sparse warnings.
Signed-off-by: Holger Schurig <hs4233 at mail.mn-solutions.de>
--
Used the idea from johill.
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 13:18:50.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 || !pchantlvout || !pscanchanlist) {
lbs_deb_scan("Scan: Null detect: %p, %p, %p\n",
pscancfgout, pchantlvout, pscanchanlist);
return -1;
More information about the libertas-dev
mailing list