staging: r8188eu: terminate_xmitthread_sema is not used
authorMartin Kaiser <martin@kaiser.cx>
Fri, 30 Dec 2022 18:06:41 +0000 (19:06 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Jan 2023 18:31:22 +0000 (19:31 +0100)
Remove terminate_xmitthread_sema from struct xmit_priv. This semaphore is
initialised but not used.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150
Link: https://lore.kernel.org/r/20221230180646.91008-16-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_xmit.c
drivers/staging/r8188eu/include/rtw_xmit.h

index a4e726fff5d404ac69ee307228af33640b01c254..3a3b86f4105abe610a324d04a4d3636d24be36d6 100644 (file)
@@ -69,7 +69,6 @@ int _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->terminate_xmitthread_sema, 0);
 
        /*
         * Please insert all the queue initializaiton using rtw_init_queue below
index 83638dede6e75e3753d514d4ef0cd04c0daa59df..ef1b7123e557188b4c3960e094829cb799448f2c 100644 (file)
@@ -257,7 +257,6 @@ struct agg_pkt_info {
 
 struct xmit_priv {
        spinlock_t lock;
-       struct semaphore terminate_xmitthread_sema;
        struct __queue be_pending;
        struct __queue bk_pending;
        struct __queue vi_pending;