Skip to contentSkip to conversation

rtlwifi: rtl8821ae: phy.c: Drop condition with no effect

PATCH In review Saurav Girepunje 2 participants 2 messages Oct 29, 2019 – Oct 31, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rtlwifi: rtl8821ae: phy.c: 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.

---
 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c | 2 --
 1 file changed, 2 deletions(-)
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c +0 -2
index 979e434a4e73..cad560aeb7dd 100644
@@ -3553,8 +3553,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,
Signature · 1 line
2.20.1
#1 lore raw

Re: [PATCH] rtlwifi: rtl8821ae: Drop condition with no effect

Quoted 4 lines · Saurav Girepunje

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

Patch applied to wireless-drivers-next.git, thanks.

4b15f83adaf1 rtlwifi: rtl8821ae: Drop condition with no effect

Signature · 3 lines
https://patchwork.kernel.org/patch/11217859/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches