Skip to content

Commit

Permalink
[PATCH] libertas: fix "warning: Using plain integer as NULL pointer" …
Browse files Browse the repository at this point in the history
…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>
  • Loading branch information
Holger Schurig authored and David S. Miller committed Oct 10, 2007
1 parent 8b17d72 commit 314a886
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/libertas/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 314a886

Please sign in to comment.