rtlwifi: rtl8821ae: phy.c: Drop condition with no effect
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.
Signed-off-by Saurav Girepunje <[email protected]>
--- drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c | 2 -- 1 file changed, 2 deletions(-)
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c +0 -2
@@ -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
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.
Signed-off-by Saurav Girepunje <[email protected]>
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