Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 990e08a0 authored by Ben Greear's avatar Ben Greear Committed by John W. Linville
Browse files

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: default avatarGabor Juhos <juhosg@openwrt.org>
Signed-off-by: default avatarBen Greear <greearb@candelatech.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 8a690674
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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 */
+1 −1
Original line number Diff line number Diff line
@@ -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];