aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/r8188eu/core/rtw_xmit.c
diff options
context:
space:
mode:
authorMichael Straube <straube.linux@gmail.com>2022-08-20 20:16:10 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-08-23 15:42:45 +0200
commit05571d2787d98731e4bc886618552d2bdaace54a (patch)
tree05b8480f875f83f97711bc4f0aa2c5dca2ef9b7d /drivers/staging/r8188eu/core/rtw_xmit.c
parentstaging: r8188eu: rename rtw_os_xmit_resource_alloc() (diff)
downloadlinux-dev-05571d2787d98731e4bc886618552d2bdaace54a.tar.xz
linux-dev-05571d2787d98731e4bc886618552d2bdaace54a.zip
staging: r8188eu: make rtw_os_xmit_resource_free() static
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>
Diffstat (limited to 'drivers/staging/r8188eu/core/rtw_xmit.c')
-rw-r--r--drivers/staging/r8188eu/core/rtw_xmit.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/staging/r8188eu/core/rtw_xmit.c b/drivers/staging/r8188eu/core/rtw_xmit.c
index a1d2c2f78044..426bf87a1404 100644
--- a/drivers/staging/r8188eu/core/rtw_xmit.c
+++ b/drivers/staging/r8188eu/core/rtw_xmit.c
@@ -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;