From: Roland Vossen Date: Thu, 24 Feb 2011 11:04:34 +0000 (+0100) Subject: staging: brcm80211: removed compile warning X-Git-Tag: v2.6.39-rc1~469^2~378 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8d9e9d09b78bd131f488bbd2746852a05bcf557f;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git staging: brcm80211: removed compile warning A warning was generated if CONFIG_BRCMDBG=n. Fixed this by introducing an function. Signed-off-by: Roland Vossen Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/brcm80211/brcmsmac/wl_mac80211.c b/drivers/staging/brcm80211/brcmsmac/wl_mac80211.c index 7645c6c..98ceaed 100644 --- a/drivers/staging/brcm80211/brcmsmac/wl_mac80211.c +++ b/drivers/staging/brcm80211/brcmsmac/wl_mac80211.c @@ -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