提交 80b99932 编写于 作者: L Luis R. Rodriguez 提交者: John W. Linville

ath9k_hw: shift code for AR9280 OLC temp comp

We're bailing out on the alternative code path so remove the
else branch.
Signed-off-by: NLuis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 becdbc54
......@@ -711,9 +711,9 @@ static void ath9k_olc_temp_compensation(struct ath_hw *ah)
rddata = REG_READ(ah, AR_PHY_TX_PWRCTRL4);
currPDADC = MS(rddata, AR_PHY_TX_PWRCTRL_PD_AVG_OUT);
if (ah->initPDADC == 0 || currPDADC == 0) {
if (ah->initPDADC == 0 || currPDADC == 0)
return;
} else {
if (ah->eep_ops->get_eeprom(ah, EEP_DAC_HPWR_5G))
delta = (currPDADC - ah->initPDADC + 4) / 8;
else
......@@ -732,7 +732,6 @@ static void ath9k_olc_temp_compensation(struct ath_hw *ah)
}
}
}
}
}
static void ath9k_hw_9271_pa_cal(struct ath_hw *ah, bool is_reset)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册