staging: r8723au: Remove unused semaphores

The semaphores xmit_sema, terminate_xmitthread_sema, tx_retevt and
io_req have no users, hence remove all references to them.
Semaphores are going away in the future.

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:
Binoy Jayan 2016-06-08 13:10:55 +05:30 committed by Greg Kroah-Hartman
parent 3948506668
commit 243d38aab2
4 changed files with 0 additions and 12 deletions

View File

@ -60,8 +60,6 @@ int _rtw_init_xmit_priv23a(struct xmit_priv *pxmitpriv,
spin_lock_init(&pxmitpriv->lock); spin_lock_init(&pxmitpriv->lock);
spin_lock_init(&pxmitpriv->lock_sctx); spin_lock_init(&pxmitpriv->lock_sctx);
sema_init(&pxmitpriv->xmit_sema, 0);
sema_init(&pxmitpriv->terminate_xmitthread_sema, 0);
pxmitpriv->adapter = padapter; pxmitpriv->adapter = padapter;
@ -177,8 +175,6 @@ int _rtw_init_xmit_priv23a(struct xmit_priv *pxmitpriv,
for (i = 0; i < 4; i ++) for (i = 0; i < 4; i ++)
pxmitpriv->wmm_para_seq[i] = i; pxmitpriv->wmm_para_seq[i] = i;
sema_init(&pxmitpriv->tx_retevt, 0);
pxmitpriv->ack_tx = false; pxmitpriv->ack_tx = false;
mutex_init(&pxmitpriv->ack_tx_mutex); mutex_init(&pxmitpriv->ack_tx_mutex);
rtw_sctx_init23a(&pxmitpriv->ack_tx_ops, 0); rtw_sctx_init23a(&pxmitpriv->ack_tx_ops, 0);

View File

@ -33,7 +33,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/sem.h> #include <linux/sem.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/etherdevice.h> #include <linux/etherdevice.h>

View File

@ -20,7 +20,6 @@
#include <osdep_intf.h> #include <osdep_intf.h>
#include <asm/byteorder.h> #include <asm/byteorder.h>
#include <linux/semaphore.h>
#include <linux/list.h> #include <linux/list.h>
/* include <linux/smp_lock.h> */ /* include <linux/smp_lock.h> */
#include <linux/spinlock.h> #include <linux/spinlock.h>
@ -105,7 +104,6 @@ struct io_req {
u32 command; u32 command;
u32 status; u32 status;
u8 *pbuf; u8 *pbuf;
struct semaphore sema;
void (*_async_io_callback)(struct rtw_adapter *padater, struct io_req *pio_req, u8 *cnxt); void (*_async_io_callback)(struct rtw_adapter *padater, struct io_req *pio_req, u8 *cnxt);
u8 *cnxt; u8 *cnxt;

View File

@ -275,9 +275,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 rtw_queue be_pending; struct rtw_queue be_pending;
struct rtw_queue bk_pending; struct rtw_queue bk_pending;
struct rtw_queue vi_pending; struct rtw_queue vi_pending;
@ -310,8 +307,6 @@ struct xmit_priv {
* 2->be, 3->bk. * 2->be, 3->bk.
*/ */
struct semaphore tx_retevt;/* all tx return event; */
struct tasklet_struct xmit_tasklet; struct tasklet_struct xmit_tasklet;
struct rtw_queue free_xmitbuf_queue; struct rtw_queue free_xmitbuf_queue;