Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=314a886f08d689cdcf10bd8e4777a3d9f483bb53
Commit:     314a886f08d689cdcf10bd8e4777a3d9f483bb53
Parent:     8b17d7234c7039b668739e1868f3d5544d79a4c0
Author:     Holger Schurig <[EMAIL PROTECTED]>
AuthorDate: Mon Oct 8 12:20:04 2007 +0200
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Wed Oct 10 16:55:20 2007 -0700

    [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 <[EMAIL PROTECTED]>
    Signed-off-by: John W. Linville <[EMAIL PROTECTED]>
---
 drivers/net/wireless/libertas/scan.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/wireless/libertas/scan.c 
b/drivers/net/wireless/libertas/scan.c
index fab93d8..dcce354 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;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to