staging: r8188eu: tx_retevt semaphore is not used
authorMartin Kaiser <martin@kaiser.cx>
Fri, 30 Dec 2022 18:06:42 +0000 (19:06 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Jan 2023 18:31:23 +0000 (19:31 +0100)
Remove tx_retevt 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-17-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 3a3b86f4105abe610a324d04a4d3636d24be36d6..5e2979c01ff5bbef3c4ab88f48c8208d3d8baed1 100644 (file)
@@ -196,8 +196,6 @@ int _rtw_init_xmit_priv(struct xmit_priv *pxmitpriv, struct adapter *padapter)
 
        pxmitpriv->txirp_cnt = 1;
 
-       sema_init(&pxmitpriv->tx_retevt, 0);
-
        /* per AC pending irp */
        pxmitpriv->beq_cnt = 0;
        pxmitpriv->bkq_cnt = 0;
index ef1b7123e557188b4c3960e094829cb799448f2c..719424dd8a495c07156262bf4be58e5e9df6914c 100644 (file)
@@ -280,7 +280,6 @@ struct      xmit_priv {
        u8      wmm_para_seq[4];/* sequence for wmm ac parameter strength
                                 * from large to small. it's value is 0->vo,
                                 * 1->vi, 2->be, 3->bk. */
-       struct semaphore tx_retevt;/* all tx return event; */
        u8              txirp_cnt;/*  */
        struct tasklet_struct xmit_tasklet;
        /* per AC pending irp */