mirror of https://gitee.com/openkylin/linux.git
staging: rtl8723bs: Remove function rtw_set_scan_deny_timer_hdl()
Remove function rtw_set_scan_deny_timer_hdl as all it does is call rtw_clear_scan_deny. Modify call sites of rtw_set_scan_deny_timer_hdl to call rtw_clear_scan_deny instead. Issue found with Coccinelle. Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
2b524fc4ff
commit
f4db969efa
|
@ -1930,11 +1930,6 @@ inline void rtw_clear_scan_deny(struct adapter *adapter)
|
|||
DBG_871X(FUNC_ADPT_FMT"\n", FUNC_ADPT_ARG(adapter));
|
||||
}
|
||||
|
||||
void rtw_set_scan_deny_timer_hdl(struct adapter *adapter)
|
||||
{
|
||||
rtw_clear_scan_deny(adapter);
|
||||
}
|
||||
|
||||
void rtw_set_scan_deny(struct adapter *adapter, u32 ms)
|
||||
{
|
||||
struct mlme_priv *mlmepriv = &adapter->mlmepriv;
|
||||
|
|
|
@ -589,7 +589,6 @@ extern void rtw_scan_timeout_handler(struct timer_list *t);
|
|||
extern void rtw_dynamic_check_timer_handler(struct adapter *adapter);
|
||||
bool rtw_is_scan_deny(struct adapter *adapter);
|
||||
void rtw_clear_scan_deny(struct adapter *adapter);
|
||||
void rtw_set_scan_deny_timer_hdl(struct adapter *adapter);
|
||||
void rtw_set_scan_deny(struct adapter *adapter, u32 ms);
|
||||
|
||||
void rtw_free_mlme_priv_ie_data(struct mlme_priv *pmlmepriv);
|
||||
|
|
|
@ -26,7 +26,7 @@ static void _rtw_set_scan_deny_timer_hdl(struct timer_list *t)
|
|||
struct adapter *adapter =
|
||||
from_timer(adapter, t, mlmepriv.set_scan_deny_timer);
|
||||
|
||||
rtw_set_scan_deny_timer_hdl(adapter);
|
||||
rtw_clear_scan_deny(adapter);
|
||||
}
|
||||
|
||||
void rtw_init_mlme_timer(struct adapter *padapter)
|
||||
|
|
Loading…
Reference in New Issue