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/calib.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/calib.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/calib.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath9k/calib.c b/drivers/net/wireless/ath/ath9k/calib.c index a197041d76b5..a32d7e7fecbe 100644 --- a/drivers/net/wireless/ath/ath9k/calib.c +++ b/drivers/net/wireless/ath/ath9k/calib.c | |||
@@ -863,7 +863,7 @@ bool ath9k_hw_calibrate(struct ath_hw *ah, struct ath9k_channel *chan, | |||
863 | } | 863 | } |
864 | 864 | ||
865 | if (longcal) { | 865 | if (longcal) { |
866 | if (AR_SREV_9285(ah) && AR_SREV_9285_11_OR_LATER(ah)) | 866 | if (AR_SREV_9285_11_OR_LATER(ah)) |
867 | ath9k_hw_9285_pa_cal(ah); | 867 | ath9k_hw_9285_pa_cal(ah); |
868 | 868 | ||
869 | if (OLC_FOR_AR9280_20_LATER) | 869 | if (OLC_FOR_AR9280_20_LATER) |
@@ -917,7 +917,7 @@ static bool ar9285_clc(struct ath_hw *ah, struct ath9k_channel *chan) | |||
917 | 917 | ||
918 | bool ath9k_hw_init_cal(struct ath_hw *ah, struct ath9k_channel *chan) | 918 | bool ath9k_hw_init_cal(struct ath_hw *ah, struct ath9k_channel *chan) |
919 | { | 919 | { |
920 | if (AR_SREV_9285(ah) && AR_SREV_9285_12_OR_LATER(ah)) { | 920 | if (AR_SREV_9285_12_OR_LATER(ah)) { |
921 | if (!ar9285_clc(ah, chan)) | 921 | if (!ar9285_clc(ah, chan)) |
922 | return false; | 922 | return false; |
923 | } else { | 923 | } else { |
@@ -947,7 +947,7 @@ bool ath9k_hw_init_cal(struct ath_hw *ah, struct ath9k_channel *chan) | |||
947 | } | 947 | } |
948 | 948 | ||
949 | /* Do PA Calibration */ | 949 | /* Do PA Calibration */ |
950 | if (AR_SREV_9285(ah) && AR_SREV_9285_11_OR_LATER(ah)) | 950 | if (AR_SREV_9285_11_OR_LATER(ah)) |
951 | ath9k_hw_9285_pa_cal(ah); | 951 | ath9k_hw_9285_pa_cal(ah); |
952 | 952 | ||
953 | /* Do NF Calibration after DC offset and other calibrations */ | 953 | /* Do NF Calibration after DC offset and other calibrations */ |