staging: r8188eu: remove rtl8188eu_init_xmit_priv
authorMartin Kaiser <martin@kaiser.cx>
Fri, 30 Dec 2022 18:06:33 +0000 (19:06 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Jan 2023 18:31:22 +0000 (19:31 +0100)
rtl8188eu_init_xmit_priv's only jobs is to initialise the xmit tasklet.

Remove rtl8188eu_init_xmit_priv and initialise the xmit tasklet in
_rtw_init_xmit_priv. Yet again, this makes the code a tiny bit smaller.

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-8-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_xmit.c
drivers/staging/r8188eu/hal/rtl8188eu_xmit.c
drivers/staging/r8188eu/include/rtl8188e_xmit.h

index 55842028ad22a1c8068eb72bc71d0793b998ee53..461183e035eaadf99a421a03fbfc4abb026fff7b 100644 (file)
@@ -211,7 +211,7 @@ int _rtw_init_xmit_priv(struct xmit_priv *pxmitpriv, struct adapter *padapter)
        mutex_init(&pxmitpriv->ack_tx_mutex);
        rtw_sctx_init(&pxmitpriv->ack_tx_ops, 0);
 
-       rtl8188eu_init_xmit_priv(padapter);
+       tasklet_init(&pxmitpriv->xmit_tasklet, rtl8188eu_xmit_tasklet, (unsigned long)padapter);
 
        return 0;
 
index cca74cf289150556042cd5f26aacd65fca1b9ccd..cf9779b86b9cb0b65226f7a65b0d93b02e9a4272 100644 (file)
@@ -9,16 +9,6 @@
 #include "../include/usb_ops.h"
 #include "../include/rtl8188e_hal.h"
 
-s32    rtl8188eu_init_xmit_priv(struct adapter *adapt)
-{
-       struct xmit_priv        *pxmitpriv = &adapt->xmitpriv;
-
-       tasklet_init(&pxmitpriv->xmit_tasklet,
-                    rtl8188eu_xmit_tasklet,
-                    (unsigned long)adapt);
-       return _SUCCESS;
-}
-
 static void rtl8188eu_cal_txdesc_chksum(struct tx_desc *ptxdesc)
 {
        u16     *usptr = (u16 *)ptxdesc;
index 865468d6b9222d00971c2bdaa159d53cc1d68c04..82439f52b0c8445d6a3a9e6124518df06511fae1 100644 (file)
@@ -131,7 +131,6 @@ struct txrpt_ccx_88e {
 
 void rtl8188e_fill_fake_txdesc(struct adapter *padapter, u8 *pDesc,
                               u32 BufferLen, u8 IsPsPoll, u8 IsBTQosNull);
-s32 rtl8188eu_init_xmit_priv(struct adapter *padapter);
 s32 rtl8188eu_hal_xmit(struct adapter *padapter, struct xmit_frame *frame);
 s32 rtl8188eu_mgnt_xmit(struct adapter *padapter, struct xmit_frame *frame);
 s32 rtl8188eu_xmit_buf_handler(struct adapter *padapter);