mirror of
https://github.com/Mange/rtl8192eu-linux-driver
synced 2026-03-31 22:49:56 +00:00
Remove wrapper around vfree
This call is so simple that there is no need, or use, for a wrapper. Link: https://lore.kernel.org/r/20210805183717.23007-3-Larry.Finger@lwfinger.net
This commit is contained in:
committed by
Carlos Garcés
parent
4d3d23dd24
commit
34ec238387
@@ -405,12 +405,10 @@ void _rtw_free_xmit_priv(struct xmit_priv *pxmitpriv)
|
||||
pxmitbuf++;
|
||||
}
|
||||
|
||||
if (pxmitpriv->pallocated_frame_buf)
|
||||
rtw_vmfree(pxmitpriv->pallocated_frame_buf, NR_XMITFRAME * sizeof(struct xmit_frame) + 4);
|
||||
vfree(pxmitpriv->pallocated_frame_buf);
|
||||
|
||||
|
||||
if (pxmitpriv->pallocated_xmitbuf)
|
||||
rtw_vmfree(pxmitpriv->pallocated_xmitbuf, NR_XMITBUFF * sizeof(struct xmit_buf) + 4);
|
||||
vfree(pxmitpriv->pallocated_xmitbuf);
|
||||
|
||||
/* free xframe_ext queue, the same count as extbuf */
|
||||
if ((pxmitframe = (struct xmit_frame *)pxmitpriv->xframe_ext)) {
|
||||
@@ -419,8 +417,8 @@ void _rtw_free_xmit_priv(struct xmit_priv *pxmitpriv)
|
||||
pxmitframe++;
|
||||
}
|
||||
}
|
||||
if (pxmitpriv->xframe_ext_alloc_addr)
|
||||
rtw_vmfree(pxmitpriv->xframe_ext_alloc_addr, NR_XMIT_EXTBUFF * sizeof(struct xmit_frame) + 4);
|
||||
|
||||
vfree(pxmitpriv->xframe_ext_alloc_addr);
|
||||
_rtw_spinlock_free(&pxmitpriv->free_xframe_ext_queue.lock);
|
||||
|
||||
/* free xmit extension buff */
|
||||
@@ -433,8 +431,7 @@ void _rtw_free_xmit_priv(struct xmit_priv *pxmitpriv)
|
||||
pxmitbuf++;
|
||||
}
|
||||
|
||||
if (pxmitpriv->pallocated_xmit_extbuf)
|
||||
rtw_vmfree(pxmitpriv->pallocated_xmit_extbuf, NR_XMIT_EXTBUFF * sizeof(struct xmit_buf) + 4);
|
||||
vfree(pxmitpriv->pallocated_xmit_extbuf);
|
||||
|
||||
for (i = 0; i < CMDBUF_MAX; i++) {
|
||||
pxmitbuf = &pxmitpriv->pcmd_xmitbuf[i];
|
||||
|
||||
Reference in New Issue
Block a user