forked from Minki/linux
staging: rtlwifi: Remove set but not used variable 'ppsc'
Fixes gcc '-Wunused-but-set-variable' warning: drivers/staging/rtlwifi/btcoexist/halbtcoutsrc.c: In function 'halbtc_leave_lps': drivers/staging/rtlwifi/btcoexist/halbtcoutsrc.c:284:21: warning: variable 'ppsc' set but not used [-Wunused-but-set-variable] drivers/staging/rtlwifi/btcoexist/halbtcoutsrc.c: In function 'halbtc_enter_lps': drivers/staging/rtlwifi/btcoexist/halbtcoutsrc.c:307:21: warning: variable 'ppsc' set but not used [-Wunused-but-set-variable] Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
9e3701b380
commit
0f175be612
@ -281,11 +281,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);
|
||||
@ -304,11 +302,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