diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2009-05-06 03:47:30 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-05-06 15:15:06 -0400 |
commit | f9dd6b52873ad9fda51a3881c80c96d06ee6a57d (patch) | |
tree | d8878dbfdf47c90fd34dcf69a4c80812a6e0d133 /drivers/net/wireless/ath/ath9k/hw.c | |
parent | 4f0fc7c39f2a224b939f22d4dca552b266319525 (diff) |
ath9k: remove redundant AR9285 checks
The AR_SREV_9285_1[12]_OR_LATER macros already contains the
AR_SREV_9285 check.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/hw.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c index 041c0f518ac7..5879c731e9e7 100644 --- a/drivers/net/wireless/ath/ath9k/hw.c +++ b/drivers/net/wireless/ath/ath9k/hw.c | |||
@@ -1345,8 +1345,7 @@ static int ath9k_hw_process_ini(struct ath_hw *ah, | |||
1345 | if (AR_SREV_9280(ah)) | 1345 | if (AR_SREV_9280(ah)) |
1346 | REG_WRITE_ARRAY(&ah->iniModesRxGain, modesIndex, regWrites); | 1346 | REG_WRITE_ARRAY(&ah->iniModesRxGain, modesIndex, regWrites); |
1347 | 1347 | ||
1348 | if (AR_SREV_9280(ah) || (AR_SREV_9285(ah) && | 1348 | if (AR_SREV_9280(ah) || AR_SREV_9285_12_OR_LATER(ah)) |
1349 | AR_SREV_9285_12_OR_LATER(ah))) | ||
1350 | REG_WRITE_ARRAY(&ah->iniModesTxGain, modesIndex, regWrites); | 1349 | REG_WRITE_ARRAY(&ah->iniModesTxGain, modesIndex, regWrites); |
1351 | 1350 | ||
1352 | for (i = 0; i < ah->iniCommon.ia_rows; i++) { | 1351 | for (i = 0; i < ah->iniCommon.ia_rows; i++) { |