libertas: fix "warning: Using plain integer as NULL pointer" sparse warnings
PATCH 1/1 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 <[email protected]>
--
Used the idea from johill.
drivers/net/wireless/libertas/scan.c +1 -1
@@ -578,7 +578,7 @@ static int wlan_scan_channel_list(wlan_plbs_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 ;