summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/ath9k/hw.h
diff options
context:
space:
mode:
authorBen Greear <greearb@candelatech.com>2012-04-18 02:19:03 +0400
committerJohn W. Linville <linville@tuxdriver.com>2012-04-23 23:28:34 +0400
commit990e08a0f6115ce93b480325a575b535c92513ee (patch)
tree716d82c1ac94f5b3cc5562265867c9a253a462b5 /drivers/net/wireless/ath/ath9k/hw.h
parent8a690674e0601efbe9a7b16a5826fc522645cca3 (diff)
downloadlinux-990e08a0f6115ce93b480325a575b535c92513ee.tar.xz
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/hw.h')
-rw-r--r--drivers/net/wireless/ath/ath9k/hw.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.h b/drivers/net/wireless/ath/ath9k/hw.h
index dd4b8f4097c8..8c827a183fc0 100644
--- a/drivers/net/wireless/ath/ath9k/hw.h
+++ b/drivers/net/wireless/ath/ath9k/hw.h
@@ -959,7 +959,8 @@ bool ath9k_hw_setpower(struct ath_hw *ah, enum ath9k_power_mode mode);
#ifdef CONFIG_ATH9K_DEBUGFS
void ath9k_debug_sync_cause(struct ath_common *common, u32 sync_cause);
#else
-static void ath9k_debug_sync_cause(struct ath_common *common, u32 sync_cause) {}
+static inline void ath9k_debug_sync_cause(struct ath_common *common,
+ u32 sync_cause) {}
#endif
/* Generic hw timer primitives */