staging: r8188eu: rename rtw_os_pkt_complete()
authorMichael Straube <straube.linux@gmail.com>
Sat, 20 Aug 2022 18:16:21 +0000 (20:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Aug 2022 13:42:46 +0000 (15:42 +0200)
The function rtw_os_pkt_complete() was moved from the os_dep
directory. It looks like the driver was originaly written to support
different operating systems. Obviously we do not need an extra 'os'
in the function name that indicates that the function is operating
system specific. Rename it to rtw_pkt_complete().

Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150
Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20220820181623.12497-18-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_xmit.c

index c324dad..f8d6f45 100644 (file)
@@ -229,7 +229,7 @@ exit:
        return res;
 }
 
-static void rtw_os_pkt_complete(struct adapter *padapter, struct sk_buff *pkt)
+static void rtw_pkt_complete(struct adapter *padapter, struct sk_buff *pkt)
 {
        u16 queue;
        struct xmit_priv *pxmitpriv = &padapter->xmitpriv;
@@ -250,7 +250,7 @@ static void rtw_os_pkt_complete(struct adapter *padapter, struct sk_buff *pkt)
 void rtw_xmit_complete(struct adapter *padapter, struct xmit_frame *pxframe)
 {
        if (pxframe->pkt)
-               rtw_os_pkt_complete(padapter, pxframe->pkt);
+               rtw_pkt_complete(padapter, pxframe->pkt);
        pxframe->pkt = NULL;
 }
 
@@ -1376,7 +1376,7 @@ s32 rtw_free_xmitframe(struct xmit_priv *pxmitpriv, struct xmit_frame *pxmitfram
        spin_unlock_bh(&pfree_xmit_queue->lock);
 
        if (pndis_pkt)
-               rtw_os_pkt_complete(padapter, pndis_pkt);
+               rtw_pkt_complete(padapter, pndis_pkt);
 
 exit: