Skip to content

Commit 85c6ac3

Browse files
YueHaibingKalle Valo
authored andcommitted
rtlwifi: rtl8723ae: Remove set but not used variable 'bt_retry_cnt'
Fixes gcc '-Wunused-but-set-variable' warning: drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hal_btc.c: In function '_rtl8723e_dm_bt_coexist_2_ant': drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hal_btc.c:1408:5: warning: variable 'bt_retry_cnt' set but not used [-Wunused-but-set-variable] It's never used and can be removed. Signed-off-by: YueHaibing <[email protected]> Signed-off-by: Kalle Valo <[email protected]>
1 parent f321505 commit 85c6ac3

File tree

1 file changed

+0
-2
lines changed
  • drivers/net/wireless/realtek/rtlwifi/rtl8723ae

1 file changed

+0
-2
lines changed

drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hal_btc.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1405,7 +1405,6 @@ static void rtl8723e_dm_bt_reset_action_profile_state(struct ieee80211_hw *hw)
14051405
static void _rtl8723e_dm_bt_coexist_2_ant(struct ieee80211_hw *hw)
14061406
{
14071407
struct rtl_priv *rtlpriv = rtl_priv(hw);
1408-
u8 bt_retry_cnt;
14091408
u8 bt_info_original;
14101409
RT_TRACE(rtlpriv, COMP_BT_COEXIST, DBG_DMESG,
14111410
"[BTCoex] Get bt info by fw!!\n");
@@ -1417,7 +1416,6 @@ static void _rtl8723e_dm_bt_coexist_2_ant(struct ieee80211_hw *hw)
14171416
"[BTCoex] c2h for bt_info not rcvd yet!!\n");
14181417
}
14191418

1420-
bt_retry_cnt = hal_coex_8723.bt_retry_cnt;
14211419
bt_info_original = hal_coex_8723.c2h_bt_info_original;
14221420

14231421
/* when bt inquiry or page scan, we have to set h2c 0x25 */

0 commit comments

Comments
 (0)