From: Holger Schurig Date: Mon, 8 Oct 2007 10:20:04 +0000 (+0200) Subject: [PATCH] libertas: fix "warning: Using plain integer as NULL pointer" sparse warnings X-Git-Tag: 2.1b_release~24564^2~94 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=314a886f08d689cdcf10bd8e4777a3d9f483bb53;p=platform%2Fkernel%2Fkernel-mfld-blackbay.git [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 Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/libertas/scan.c b/drivers/net/wireless/libertas/scan.c index fab93d8..dcce354e 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;