aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/recv.c
diff options
context:
space:
mode:
authorBen Greear <greearb@candelatech.com>2012-04-17 15:19:03 -0700
committerJohn W. Linville <linville@tuxdriver.com>2012-04-23 15:28:34 -0400
commit990e08a0f6115ce93b480325a575b535c92513ee (patch)
tree716d82c1ac94f5b3cc5562265867c9a253a462b5 /drivers/net/wireless/ath/ath9k/recv.c
parentmac80211: Support on-channel scan option. (diff)
downloadlinux-dev-990e08a0f6115ce93b480325a575b535c92513ee.tar.xz
linux-dev-990e08a0f6115ce93b480325a575b535c92513ee.zip
ath9k: Fix compile warnings when DEBUGFS is disabled.
This fixes two compile warnings, and removes a useless cast when assigning the 'sc' variable. Reported-by: Gabor Juhos <juhosg@openwrt.org> Signed-off-by: Ben Greear <greearb@candelatech.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/recv.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/recv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/recv.c b/drivers/net/wireless/ath/ath9k/recv.c
index 301ef3e57145..12b09798864a 100644
--- a/drivers/net/wireless/ath/ath9k/recv.c
+++ b/drivers/net/wireless/ath/ath9k/recv.c
@@ -907,7 +907,7 @@ static int ath9k_process_rate(struct ath_common *common,
struct ieee80211_supported_band *sband;
enum ieee80211_band band;
unsigned int i = 0;
- struct ath_softc *sc = (struct ath_softc *) common->priv;
+ struct ath_softc __maybe_unused *sc = common->priv;
band = hw->conf.channel->band;
sband = hw->wiphy->bands[band];