mirror of https://gitee.com/openkylin/linux.git
rtl8188eu: Remove unused semaphores
The semaphores xmit_sema, terminate_xmitthread_sema and tx_retevt have no users, hence remove all references to them. Signed-off-by: Binoy Jayan <binoy.jayan@linaro.org> Reviewed-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f18c566e4e
commit
7fbf8f73ed
|
@ -57,8 +57,6 @@ s32 _rtw_init_xmit_priv(struct xmit_priv *pxmitpriv, struct adapter *padapter)
|
||||||
/* We don't need to memset padapter->XXX to zero, because adapter is allocated by vzalloc(). */
|
/* We don't need to memset padapter->XXX to zero, because adapter is allocated by vzalloc(). */
|
||||||
|
|
||||||
spin_lock_init(&pxmitpriv->lock);
|
spin_lock_init(&pxmitpriv->lock);
|
||||||
sema_init(&pxmitpriv->xmit_sema, 0);
|
|
||||||
sema_init(&pxmitpriv->terminate_xmitthread_sema, 0);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Please insert all the queue initializaiton using _rtw_init_queue below
|
Please insert all the queue initializaiton using _rtw_init_queue below
|
||||||
|
@ -199,8 +197,6 @@ s32 _rtw_init_xmit_priv(struct xmit_priv *pxmitpriv, struct adapter *padapter)
|
||||||
|
|
||||||
pxmitpriv->txirp_cnt = 1;
|
pxmitpriv->txirp_cnt = 1;
|
||||||
|
|
||||||
sema_init(&(pxmitpriv->tx_retevt), 0);
|
|
||||||
|
|
||||||
/* per AC pending irp */
|
/* per AC pending irp */
|
||||||
pxmitpriv->beq_cnt = 0;
|
pxmitpriv->beq_cnt = 0;
|
||||||
pxmitpriv->bkq_cnt = 0;
|
pxmitpriv->bkq_cnt = 0;
|
||||||
|
|
|
@ -35,7 +35,6 @@
|
||||||
#include <asm/byteorder.h>
|
#include <asm/byteorder.h>
|
||||||
#include <linux/atomic.h>
|
#include <linux/atomic.h>
|
||||||
#include <linux/io.h>
|
#include <linux/io.h>
|
||||||
#include <linux/semaphore.h>
|
|
||||||
#include <linux/mutex.h>
|
#include <linux/mutex.h>
|
||||||
#include <linux/sem.h>
|
#include <linux/sem.h>
|
||||||
#include <linux/sched.h>
|
#include <linux/sched.h>
|
||||||
|
|
|
@ -18,7 +18,6 @@
|
||||||
#include <osdep_service.h>
|
#include <osdep_service.h>
|
||||||
|
|
||||||
#include <wlan_bssdef.h>
|
#include <wlan_bssdef.h>
|
||||||
#include <linux/semaphore.h>
|
|
||||||
#include <linux/mutex.h>
|
#include <linux/mutex.h>
|
||||||
#include <linux/sem.h>
|
#include <linux/sem.h>
|
||||||
|
|
||||||
|
|
|
@ -263,8 +263,6 @@ struct agg_pkt_info {
|
||||||
|
|
||||||
struct xmit_priv {
|
struct xmit_priv {
|
||||||
spinlock_t lock;
|
spinlock_t lock;
|
||||||
struct semaphore xmit_sema;
|
|
||||||
struct semaphore terminate_xmitthread_sema;
|
|
||||||
struct __queue be_pending;
|
struct __queue be_pending;
|
||||||
struct __queue bk_pending;
|
struct __queue bk_pending;
|
||||||
struct __queue vi_pending;
|
struct __queue vi_pending;
|
||||||
|
@ -289,7 +287,6 @@ struct xmit_priv {
|
||||||
u8 wmm_para_seq[4];/* sequence for wmm ac parameter strength
|
u8 wmm_para_seq[4];/* sequence for wmm ac parameter strength
|
||||||
* from large to small. it's value is 0->vo,
|
* from large to small. it's value is 0->vo,
|
||||||
* 1->vi, 2->be, 3->bk. */
|
* 1->vi, 2->be, 3->bk. */
|
||||||
struct semaphore tx_retevt;/* all tx return event; */
|
|
||||||
u8 txirp_cnt;/* */
|
u8 txirp_cnt;/* */
|
||||||
struct tasklet_struct xmit_tasklet;
|
struct tasklet_struct xmit_tasklet;
|
||||||
/* per AC pending irp */
|
/* per AC pending irp */
|
||||||
|
|
Loading…
Reference in New Issue