staging: r8188eu: make rtw_os_xmit_resource_free() static
authorMichael Straube <straube.linux@gmail.com>
Sat, 20 Aug 2022 18:16:10 +0000 (20:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Aug 2022 13:42:45 +0000 (15:42 +0200)
The function rtw_os_xmit_resource_free() is only used in rtw_xmit.c.
Make it static.

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-7-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_xmit.c
drivers/staging/r8188eu/include/xmit_osdep.h
drivers/staging/r8188eu/os_dep/xmit_linux.c

index a1d2c2f..426bf87 100644 (file)
@@ -50,6 +50,13 @@ static int rtw_xmit_resource_alloc(struct adapter *padapter, struct xmit_buf *px
        return _SUCCESS;
 }
 
+static void rtw_os_xmit_resource_free(struct adapter *padapter, struct xmit_buf *pxmitbuf,
+                                     u32 free_sz)
+{
+       usb_free_urb(pxmitbuf->pxmit_urb);
+       kfree(pxmitbuf->pallocated_buf);
+}
+
 s32    _rtw_init_xmit_priv(struct xmit_priv *pxmitpriv, struct adapter *padapter)
 {
        int i;
index 82b47b3..2c663c0 100644 (file)
@@ -30,9 +30,6 @@ struct xmit_buf;
 
 int rtw_xmit_entry(struct sk_buff *pkt, struct  net_device *pnetdev);
 
-void rtw_os_xmit_resource_free(struct adapter *padapter,
-                              struct xmit_buf *pxmitbuf, u32 free_sz);
-
 void _rtw_open_pktfile(struct sk_buff *pkt, struct pkt_file *pfile);
 uint _rtw_pktfile_read(struct pkt_file *pfile, u8 *rmem, uint rlen);
 
index fdecb5e..3d298d8 100644 (file)
@@ -54,14 +54,6 @@ uint _rtw_pktfile_read(struct pkt_file *pfile, u8 *rmem, uint rlen)
        return len;
 }
 
-void rtw_os_xmit_resource_free(struct adapter *padapter,
-                              struct xmit_buf *pxmitbuf, u32 free_sz)
-{
-       usb_free_urb(pxmitbuf->pxmit_urb);
-
-       kfree(pxmitbuf->pallocated_buf);
-}
-
 #define WMM_XMIT_THRESHOLD     (NR_XMITFRAME * 2 / 5)
 
 void rtw_os_pkt_complete(struct adapter *padapter, struct sk_buff *pkt)