From 5ac00c9dc264b0d83ccf9597ecbdac2da6eda7ac Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Thu, 5 Aug 2021 13:37:16 -0500 Subject: [PATCH] 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 --- core/rtw_cmd.c | 6 ------ core/rtw_mp.c | 1 - core/rtw_recv.c | 5 ----- include/osdep_service.h | 1 - os_dep/osdep_service.c | 5 ----- 5 files changed, 18 deletions(-) diff --git a/core/rtw_cmd.c b/core/rtw_cmd.c index c704bba..8efc1dd 100644 --- a/core/rtw_cmd.c +++ b/core/rtw_cmd.c @@ -187,8 +187,6 @@ static void _rtw_free_evt_priv(struct evt_priv *pevtpriv) #ifdef CONFIG_EVENT_THREAD_MODE - _rtw_free_sema(&(pevtpriv->evt_notify)); - if (pevtpriv->evt_allocated_buf) rtw_mfree(pevtpriv->evt_allocated_buf, MAX_EVTSZ + 4); #endif @@ -215,10 +213,6 @@ static void _rtw_free_cmd_priv(struct cmd_priv *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) rtw_mfree(pcmdpriv->cmd_allocated_buf, MAX_CMDSZ + CMDBUFF_ALIGN_SZ); diff --git a/core/rtw_mp.c b/core/rtw_mp.c index cb8074e..55dafbe 100644 --- a/core/rtw_mp.c +++ b/core/rtw_mp.c @@ -634,7 +634,6 @@ MPT_DeInitAdapter( pMptCtx->bMptDrvUnload = _TRUE; #if defined(CONFIG_RTL8723B) - _rtw_free_sema(&(pMptCtx->MPh2c_Sema)); _cancel_timer_ex(&pMptCtx->MPh2c_timeout_timer); #endif #if defined(CONFIG_RTL8723B) diff --git a/core/rtw_recv.c b/core/rtw_recv.c index 6c88ebf..947c8f1 100644 --- a/core/rtw_recv.c +++ b/core/rtw_recv.c @@ -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) { _adapter *padapter = precvpriv->adapter; diff --git a/include/osdep_service.h b/include/osdep_service.h index 9070544..8157edd 100644 --- a/include/osdep_service.h +++ b/include/osdep_service.h @@ -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); 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 u32 _rtw_down_sema(_sema *sema); extern void _rtw_mutex_init(_mutex *pmutex); diff --git a/os_dep/osdep_service.c b/os_dep/osdep_service.c index e02eb68..e3ada44 100644 --- a/os_dep/osdep_service.c +++ b/os_dep/osdep_service.c @@ -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) {