rtlwifi: rtl8821ae: Drop condition with no effect

As the "else if" and "else" branch body are identical the condition
has no effect. So drop the "else if" condition.

Signed-off-by: Saurav Girepunje <saurav.girepunje@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
Saurav Girepunje 2019-10-29 18:46:24 +05:30 committed by Kalle Valo
parent a9160bb35a
commit 4b15f83ada
1 changed files with 0 additions and 2 deletions

View File

@ -3548,8 +3548,6 @@ void rtl8821ae_phy_sw_chnl_callback(struct ieee80211_hw *hw)
if (rtlhal->hw_type == HARDWARE_TYPE_RTL8821AE) { if (rtlhal->hw_type == HARDWARE_TYPE_RTL8821AE) {
if (36 <= channel && channel <= 64) if (36 <= channel && channel <= 64)
data = 0x114E9; data = 0x114E9;
else if (100 <= channel && channel <= 140)
data = 0x110E9;
else else
data = 0x110E9; data = 0x110E9;
rtl8821ae_phy_set_rf_reg(hw, path, RF_APK, rtl8821ae_phy_set_rf_reg(hw, path, RF_APK,