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:
Larry Finger 2021-08-05 13:37:16 -05:00 committed by Carlos Garces
parent 264085886d
commit 5ac00c9dc2
5 changed files with 0 additions and 18 deletions

View File

@ -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);

View File

@ -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)

View File

@ -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;

View File

@ -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);

View File

@ -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)
{ {