mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-14 14:34:28 +08:00
rtlwifi: btcoex: remove set but not used variable 'ppsc'
Fixes gcc '-Wunused-but-set-variable' warning:
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c: In function 'halbtc_leave_lps':
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c:295:21: warning:
variable 'ppsc' set but not used [-Wunused-but-set-variable]
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c: In function 'halbtc_enter_lps':
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c:318:21: warning:
variable 'ppsc' set but not used [-Wunused-but-set-variable]
It never used since introduction in
commit aa45a673b2
("rtlwifi: btcoexist: Add new mini driver")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
1066bd193d
commit
9198f460ec
@ -292,11 +292,9 @@ bool halbtc_send_bt_mp_operation(struct btc_coexist *btcoexist, u8 op_code,
|
||||
static void halbtc_leave_lps(struct btc_coexist *btcoexist)
|
||||
{
|
||||
struct rtl_priv *rtlpriv;
|
||||
struct rtl_ps_ctl *ppsc;
|
||||
bool ap_enable = false;
|
||||
|
||||
rtlpriv = btcoexist->adapter;
|
||||
ppsc = rtl_psc(rtlpriv);
|
||||
|
||||
btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_AP_MODE_ENABLE,
|
||||
&ap_enable);
|
||||
@ -315,11 +313,9 @@ static void halbtc_leave_lps(struct btc_coexist *btcoexist)
|
||||
static void halbtc_enter_lps(struct btc_coexist *btcoexist)
|
||||
{
|
||||
struct rtl_priv *rtlpriv;
|
||||
struct rtl_ps_ctl *ppsc;
|
||||
bool ap_enable = false;
|
||||
|
||||
rtlpriv = btcoexist->adapter;
|
||||
ppsc = rtl_psc(rtlpriv);
|
||||
|
||||
btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_AP_MODE_ENABLE,
|
||||
&ap_enable);
|
||||
|
Loading…
Reference in New Issue
Block a user