From e2e51bd6f41cbe41f8da5298e54b9946deb103b9 Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Sat, 13 Dec 2014 15:28:20 -0600 Subject: [PATCH] rtl8188eu: Remove empty _rtw_free_sema() Signed-off-by: Larry Finger --- core/rtw_cmd.c | 2 -- core/rtw_xmit.c | 2 -- include/osdep_service.h | 1 - include/rtw_pwrctrl.h | 1 - os_dep/osdep_service.c | 4 ---- 5 files changed, 10 deletions(-) diff --git a/core/rtw_cmd.c b/core/rtw_cmd.c index 8cbfd5f..a4ff856 100644 --- a/core/rtw_cmd.c +++ b/core/rtw_cmd.c @@ -113,8 +113,6 @@ void _rtw_free_cmd_priv (struct cmd_priv *pcmdpriv) if (pcmdpriv) { _rtw_spinlock_free(&(pcmdpriv->cmd_queue.lock)); - _rtw_free_sema(&(pcmdpriv->cmd_queue_sema)); - _rtw_free_sema(&(pcmdpriv->terminate_cmdthread_sema)); if (pcmdpriv->cmd_allocated_buf) kfree(pcmdpriv->cmd_allocated_buf); diff --git a/core/rtw_xmit.c b/core/rtw_xmit.c index b92e6b8..55d1fab 100644 --- a/core/rtw_xmit.c +++ b/core/rtw_xmit.c @@ -229,8 +229,6 @@ exit: static void rtw_mfree_xmit_priv_lock (struct xmit_priv *pxmitpriv) { _rtw_spinlock_free(&pxmitpriv->lock); - _rtw_free_sema(&pxmitpriv->xmit_sema); - _rtw_free_sema(&pxmitpriv->terminate_xmitthread_sema); _rtw_spinlock_free(&pxmitpriv->be_pending.lock); _rtw_spinlock_free(&pxmitpriv->bk_pending.lock); diff --git a/include/osdep_service.h b/include/osdep_service.h index 2a05a25..8f72e44 100644 --- a/include/osdep_service.h +++ b/include/osdep_service.h @@ -250,7 +250,6 @@ void _rtw_mfree(u8 *pbuf, u32 sz); void *rtw_malloc2d(int h, int w, int size); void rtw_mfree2d(void *pbuf, int h, int w, int size); -void _rtw_free_sema(struct semaphore *sema); u32 _rtw_down_sema(struct semaphore *sema); void _rtw_mutex_init(struct mutex *pmutex); void _rtw_mutex_free(struct mutex *pmutex); diff --git a/include/rtw_pwrctrl.h b/include/rtw_pwrctrl.h index 6c965c2..3db33cd 100644 --- a/include/rtw_pwrctrl.h +++ b/include/rtw_pwrctrl.h @@ -104,7 +104,6 @@ static inline void _init_pwrlock(struct semaphore *plock) static inline void _free_pwrlock(struct semaphore *plock) { - _rtw_free_sema(plock); } static inline void _enter_pwrlock(struct semaphore *plock) diff --git a/os_dep/osdep_service.c b/os_dep/osdep_service.c index bb907b1..541af56 100644 --- a/os_dep/osdep_service.c +++ b/os_dep/osdep_service.c @@ -122,10 +122,6 @@ Otherwise, there will be racing condition. Caller must check if the list is empty before calling rtw_list_delete */ -void _rtw_free_sema(struct semaphore *sema) -{ -} - u32 _rtw_down_sema(struct semaphore *sema) { if (down_interruptible(sema))