rtlwifi: rtl8821ae: Drop condition with no effect
authorSaurav Girepunje <saurav.girepunje@gmail.com>
Tue, 29 Oct 2019 13:16:24 +0000 (18:46 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 31 Oct 2019 08:09:08 +0000 (10:09 +0200)
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>
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c

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