mirror of
https://github.com/Mange/rtl8192eu-linux-driver
synced 2024-11-26 07:25:00 +00:00
Remove more empty routines
After removing some empty routines in os_dep/osdep_service.c, new routines become empty. These include rtw_mfree_stainfo(), _rtw_free_sta_xmit_priv_lock(), and rtw_mfree_recv_priv_lock. Link: https://lore.kernel.org/r/20210805183717.23007-5-Larry.Finger@lwfinger.net
This commit is contained in:
parent
264085886d
commit
5ac00c9dc2
@ -187,8 +187,6 @@ static void _rtw_free_evt_priv(struct evt_priv *pevtpriv)
|
|||||||
|
|
||||||
|
|
||||||
#ifdef CONFIG_EVENT_THREAD_MODE
|
#ifdef CONFIG_EVENT_THREAD_MODE
|
||||||
_rtw_free_sema(&(pevtpriv->evt_notify));
|
|
||||||
|
|
||||||
if (pevtpriv->evt_allocated_buf)
|
if (pevtpriv->evt_allocated_buf)
|
||||||
rtw_mfree(pevtpriv->evt_allocated_buf, MAX_EVTSZ + 4);
|
rtw_mfree(pevtpriv->evt_allocated_buf, MAX_EVTSZ + 4);
|
||||||
#endif
|
#endif
|
||||||
@ -215,10 +213,6 @@ static void _rtw_free_cmd_priv(struct cmd_priv *pcmdpriv)
|
|||||||
{
|
{
|
||||||
|
|
||||||
if (pcmdpriv) {
|
if (pcmdpriv) {
|
||||||
_rtw_free_sema(&(pcmdpriv->cmd_queue_sema));
|
|
||||||
/* _rtw_free_sema(&(pcmdpriv->cmd_done_sema)); */
|
|
||||||
_rtw_free_sema(&(pcmdpriv->start_cmdthread_sema));
|
|
||||||
|
|
||||||
if (pcmdpriv->cmd_allocated_buf)
|
if (pcmdpriv->cmd_allocated_buf)
|
||||||
rtw_mfree(pcmdpriv->cmd_allocated_buf, MAX_CMDSZ + CMDBUFF_ALIGN_SZ);
|
rtw_mfree(pcmdpriv->cmd_allocated_buf, MAX_CMDSZ + CMDBUFF_ALIGN_SZ);
|
||||||
|
|
||||||
|
@ -634,7 +634,6 @@ MPT_DeInitAdapter(
|
|||||||
|
|
||||||
pMptCtx->bMptDrvUnload = _TRUE;
|
pMptCtx->bMptDrvUnload = _TRUE;
|
||||||
#if defined(CONFIG_RTL8723B)
|
#if defined(CONFIG_RTL8723B)
|
||||||
_rtw_free_sema(&(pMptCtx->MPh2c_Sema));
|
|
||||||
_cancel_timer_ex(&pMptCtx->MPh2c_timeout_timer);
|
_cancel_timer_ex(&pMptCtx->MPh2c_timeout_timer);
|
||||||
#endif
|
#endif
|
||||||
#if defined(CONFIG_RTL8723B)
|
#if defined(CONFIG_RTL8723B)
|
||||||
|
@ -158,11 +158,6 @@ exit:
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void rtw_mfree_recv_priv_lock(struct recv_priv *precvpriv);
|
|
||||||
void rtw_mfree_recv_priv_lock(struct recv_priv *precvpriv)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void _rtw_free_recv_priv(struct recv_priv *precvpriv)
|
void _rtw_free_recv_priv(struct recv_priv *precvpriv)
|
||||||
{
|
{
|
||||||
_adapter *padapter = precvpriv->adapter;
|
_adapter *padapter = precvpriv->adapter;
|
||||||
|
@ -260,7 +260,6 @@ void rtw_hlist_add_head_rcu(rtw_hlist_node *n, rtw_hlist_head *h);
|
|||||||
void rtw_hlist_del_rcu(rtw_hlist_node *n);
|
void rtw_hlist_del_rcu(rtw_hlist_node *n);
|
||||||
|
|
||||||
extern void _rtw_init_sema(_sema *sema, int init_val);
|
extern void _rtw_init_sema(_sema *sema, int init_val);
|
||||||
extern void _rtw_free_sema(_sema *sema);
|
|
||||||
extern void _rtw_up_sema(_sema *sema);
|
extern void _rtw_up_sema(_sema *sema);
|
||||||
extern u32 _rtw_down_sema(_sema *sema);
|
extern u32 _rtw_down_sema(_sema *sema);
|
||||||
extern void _rtw_mutex_init(_mutex *pmutex);
|
extern void _rtw_mutex_init(_mutex *pmutex);
|
||||||
|
@ -847,11 +847,6 @@ void _rtw_init_sema(_sema *sema, int init_val)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void _rtw_free_sema(_sema *sema)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
void _rtw_up_sema(_sema *sema)
|
void _rtw_up_sema(_sema *sema)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user