[PATCH] rtlwifi: rtl8192c: Drop condition with no effect

Subsystems: realtek wireless driver (rtlwifi family), the rest

STALE2479d

2 messages, 2 authors, 2019-10-31 · open the first message on its own page

[PATCH] rtlwifi: rtl8192c: Drop condition with no effect

From: Saurav Girepunje <hidden>
Date: 2019-10-28 18:51:41

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 <redacted>
---
 drivers/net/wireless/realtek/rtlwifi/rtl8192c/dm_common.c | 2 --
 1 file changed, 2 deletions(-)
diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8192c/dm_common.c b/drivers/net/wireless/realtek/rtlwifi/rtl8192c/dm_common.c
index f2908ee5f860..4bef237f488d 100644
--- a/drivers/net/wireless/realtek/rtlwifi/rtl8192c/dm_common.c
+++ b/drivers/net/wireless/realtek/rtlwifi/rtl8192c/dm_common.c
@@ -1649,8 +1649,6 @@ static void rtl92c_bt_ant_isolation(struct ieee80211_hw *hw, u8 tmp1byte)
 			    (rtlpriv->btcoexist.bt_rssi_state &
 			    BT_RSSI_STATE_SPECIAL_LOW)) {
 			rtl_write_byte(rtlpriv, REG_GPIO_MUXCFG, 0xa0);
-		} else if (rtlpriv->btcoexist.bt_service == BT_PAN) {
-			rtl_write_byte(rtlpriv, REG_GPIO_MUXCFG, tmp1byte);
 		} else {
 			rtl_write_byte(rtlpriv, REG_GPIO_MUXCFG, tmp1byte);
 		}
-- 
2.20.1

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

From: Kalle Valo <hidden>
Date: 2019-10-31 08:06:01

Saurav Girepunje [off-list ref] wrote:
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 <redacted>
Patch applied to wireless-drivers-next.git, thanks.

cbbd7f9a5e76 rtlwifi: rtl8192c: Drop condition with no effect

-- 
https://patchwork.kernel.org/patch/11216285/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help