staging: r8188eu: remove rtw_xmitframe_enqueue
authorMartin Kaiser <martin@kaiser.cx>
Mon, 23 Jan 2023 20:53:39 +0000 (21:53 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jan 2023 09:10:37 +0000 (10:10 +0100)
The rtw_xmitframe_enqueue function is only one line. We can remove it and
call rtw_xmit_classifier directly.

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/20230123205342.229589-21-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/rtw_xmit.h

index 4f9defdbe2578c780726dcb333234ee022746243..3752d4fddd11e0fe4ba9df9d2712a3f5a06f632d 100644 (file)
@@ -1345,11 +1345,6 @@ void rtw_free_xmitframe_queue(struct xmit_priv *pxmitpriv, struct __queue *pfram
        spin_unlock_bh(&pframequeue->lock);
 }
 
-s32 rtw_xmitframe_enqueue(struct adapter *padapter, struct xmit_frame *pxmitframe)
-{
-       return rtw_xmit_classifier(padapter, pxmitframe);
-}
-
 struct xmit_frame *rtw_dequeue_xframe(struct xmit_priv *pxmitpriv, struct hw_xmit *phwxmit_i)
 {
        struct hw_xmit *phwxmit;
index e067cc271686dbd9470e2ebe3321dd42ec0bfdf8..18557738dbad283bf755bae827491eb862f8beb7 100644 (file)
@@ -596,7 +596,7 @@ static s32 pre_xmitframe(struct adapter *adapt, struct xmit_frame *pxmitframe)
        return true;
 
 enqueue:
-       res = rtw_xmitframe_enqueue(adapt, pxmitframe);
+       res = rtw_xmit_classifier(adapt, pxmitframe);
        spin_unlock_bh(&pxmitpriv->lock);
 
        if (res != _SUCCESS) {
index 30f8000120b2e5b6dd719e63384248dcc4520270..4aa7833487c81eba47e2f66489bf04065f33b9c7 100644 (file)
@@ -320,8 +320,6 @@ void rtw_free_xmitframe_queue(struct xmit_priv *pxmitpriv,
                              struct __queue *pframequeue);
 struct tx_servq *rtw_get_sta_pending(struct adapter *padapter,
                                     struct sta_info *psta, int up, u8 *ac);
-s32 rtw_xmitframe_enqueue(struct adapter *padapter,
-                         struct xmit_frame *pxmitframe);
 struct xmit_frame *rtw_dequeue_xframe(struct xmit_priv *pxmitpriv,
                                      struct hw_xmit *phwxmit_i);