diff --git a/core/rtw_recv.c b/core/rtw_recv.c index c0b67fc..6c88ebf 100644 --- a/core/rtw_recv.c +++ b/core/rtw_recv.c @@ -161,9 +161,6 @@ exit: void rtw_mfree_recv_priv_lock(struct recv_priv *precvpriv); void rtw_mfree_recv_priv_lock(struct recv_priv *precvpriv) { -#ifdef CONFIG_RECV_THREAD_MODE - _rtw_free_sema(&precvpriv->recv_sema); -#endif } void _rtw_free_recv_priv(struct recv_priv *precvpriv) diff --git a/core/rtw_xmit.c b/core/rtw_xmit.c index 91b6994..bceb04c 100644 --- a/core/rtw_xmit.c +++ b/core/rtw_xmit.c @@ -350,7 +350,6 @@ exit: void rtw_mfree_xmit_priv_lock(struct xmit_priv *pxmitpriv); void rtw_mfree_xmit_priv_lock(struct xmit_priv *pxmitpriv) { - _rtw_free_sema(&pxmitpriv->xmit_sema); } diff --git a/include/rtw_pwrctrl.h b/include/rtw_pwrctrl.h index 6afd25c..5e82e95 100644 --- a/include/rtw_pwrctrl.h +++ b/include/rtw_pwrctrl.h @@ -156,7 +156,6 @@ __inline static void _init_pwrlock(_pwrlock *plock) __inline static void _free_pwrlock(_pwrlock *plock) { - _rtw_free_sema(plock); }