提交 e62ddec9 编写于 作者: M Mohammed Shafi Shajakhan 提交者: John W. Linville

ath9k: remove redundant if check

Signed-off-by: NMohammed Shafi Shajakhan <mshajakhan@atheros.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 7882513b
...@@ -515,8 +515,6 @@ void ath_ani_calibrate(unsigned long data) ...@@ -515,8 +515,6 @@ void ath_ani_calibrate(unsigned long data)
common->ani.checkani_timer = timestamp; common->ani.checkani_timer = timestamp;
} }
/* Skip all processing if there's nothing to do. */
if (longcal || shortcal || aniflag) {
/* Call ANI routine if necessary */ /* Call ANI routine if necessary */
if (aniflag) { if (aniflag) {
spin_lock_irqsave(&common->cc_lock, flags); spin_lock_irqsave(&common->cc_lock, flags);
...@@ -528,11 +526,8 @@ void ath_ani_calibrate(unsigned long data) ...@@ -528,11 +526,8 @@ void ath_ani_calibrate(unsigned long data)
/* Perform calibration if necessary */ /* Perform calibration if necessary */
if (longcal || shortcal) { if (longcal || shortcal) {
common->ani.caldone = common->ani.caldone =
ath9k_hw_calibrate(ah, ath9k_hw_calibrate(ah, ah->curchan,
ah->curchan, common->rx_chainmask, longcal);
common->rx_chainmask,
longcal);
}
} }
ath9k_ps_restore(sc); ath9k_ps_restore(sc);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册