From 264085886de10082bda8e9f4c87237e1401a5b22 Mon Sep 17 00:00:00 2001 From: Carlos Garces Date: Thu, 14 Oct 2021 21:41:53 +0200 Subject: [PATCH] Remove wrappers _rtw_free_sema Port of 2ca4ab5324062e70393e9a37a8db1ea94d6e2f99 --- core/rtw_recv.c | 3 --- core/rtw_xmit.c | 1 - include/rtw_pwrctrl.h | 1 - 3 files changed, 5 deletions(-) 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); }