[PATCH] libertas: fix "warning: Using plain integer as NULL pointer" sparse warnings
authorHolger Schurig <hs4233@mail.mn-solutions.de>
Mon, 8 Oct 2007 10:20:04 +0000 (12:20 +0200)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:55:20 +0000 (16:55 -0700)
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>
drivers/net/wireless/libertas/scan.c

index fab93d8fe9c7f9af806bb3f134d436df4f2e97eb..dcce354e904c68848b9db78bc9b341bc22315639 100644 (file)
@@ -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;