staging: r8188eu: Remove initialized but unused semaphore
authorFabio M. De Francesco <fmdefrancesco@gmail.com>
Fri, 22 Oct 2021 10:10:27 +0000 (12:10 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 24 Oct 2021 12:28:09 +0000 (14:28 +0200)
Remove semaphore "xmit_sema" from "struct adapter" because it is
initialized but never used.

Signed-off-by: Fabio M. De Francesco <fmdefrancesco@gmail.com>
Link: https://lore.kernel.org/r/20211022101028.30367-2-fmdefrancesco@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_xmit.c
drivers/staging/r8188eu/include/rtw_xmit.h

index 720e190a743629079a8ca54f81c29d275e990012..0c033a077bf925e505a0c3c50eaf23a7c7c280e4 100644 (file)
@@ -49,7 +49,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(). */
 
        spin_lock_init(&pxmitpriv->lock);
-       sema_init(&pxmitpriv->xmit_sema, 0);
        sema_init(&pxmitpriv->terminate_xmitthread_sema, 0);
 
        /*
index ea8e82e0b4be3d190dfda2efe697e8f11bb0dd26..b2df1480d66b39c5b2023631be4acb5ba5d9b1ae 100644 (file)
@@ -256,7 +256,6 @@ struct agg_pkt_info {
 
 struct xmit_priv {
        spinlock_t lock;
-       struct semaphore xmit_sema;
        struct semaphore terminate_xmitthread_sema;
        struct __queue be_pending;
        struct __queue bk_pending;