]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
staging: brcm80211: removed compile warning
authorRoland Vossen <rvossen@broadcom.com>
Thu, 24 Feb 2011 11:04:34 +0000 (12:04 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 1 Mar 2011 02:07:16 +0000 (18:07 -0800)
A warning was generated if CONFIG_BRCMDBG=n. Fixed this by introducing an
function.

Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/brcm80211/brcmsmac/wl_mac80211.c

index 7645c6c972fdcd3195e22122a77ed2f06292c210..98ceaed1700de7ad5732af750bc8982a60bad041 100644 (file)
@@ -183,10 +183,11 @@ static int wl_ops_start(struct ieee80211_hw *hw)
 
 static void wl_ops_stop(struct ieee80211_hw *hw)
 {
+#ifdef BRCMDBG
        struct wl_info *wl = hw->priv;
        ASSERT(wl);
+#endif /*BRCMDBG*/
        ieee80211_stop_queues(hw);
-       return;
 }
 
 static int