staging: rtl8188eu: remove unused parameter
PATCH 1/1 staging: rtl8188eu: remove unused parameter
Remove unused parameter 'padapter' from rtw_os_xmit_resource_alloc().
Signed-off-by Michael Straube <[email protected]>
--- drivers/staging/rtl8188eu/core/rtw_xmit.c | 6 +++--- drivers/staging/rtl8188eu/include/xmit_osdep.h | 3 +-- drivers/staging/rtl8188eu/os_dep/xmit_linux.c | 3 +-- 3 files changed, 5 insertions(+), 7 deletions(-)
drivers/staging/rtl8188eu/core/rtw_xmit.c +3 -3
@@ -124,10 +124,10 @@ s32 _rtw_init_xmit_priv(struct xmit_priv *pxmitpriv, struct adapter *padapter) pxmitbuf->ext_tag = false;/* Tx buf allocation may fail sometimes, so sleep and retry. */ - res =rtw_os_xmit_resource_alloc (padapter, pxmitbuf, (MAX_XMITBUF_SZ +XMITBUF_ALIGN_SZ )); + res =rtw_os_xmit_resource_alloc (pxmitbuf, (MAX_XMITBUF_SZ +XMITBUF_ALIGN_SZ ));if (res == _FAIL) {msleep (10 ); - res =rtw_os_xmit_resource_alloc (padapter, pxmitbuf, (MAX_XMITBUF_SZ +XMITBUF_ALIGN_SZ )); + res =rtw_os_xmit_resource_alloc (pxmitbuf, (MAX_XMITBUF_SZ +XMITBUF_ALIGN_SZ ));if (res == _FAIL) goto exit; }
@@ -162,7 +162,7 @@ s32 _rtw_init_xmit_priv(struct xmit_priv *pxmitpriv, struct adapter *padapter) pxmitbuf->padapter = padapter; pxmitbuf->ext_tag = true; - res =rtw_os_xmit_resource_alloc (padapter, pxmitbuf, max_xmit_extbuf_size +XMITBUF_ALIGN_SZ ); + res =rtw_os_xmit_resource_alloc (pxmitbuf, max_xmit_extbuf_size +XMITBUF_ALIGN_SZ );if (res == _FAIL) { res = _FAIL; goto exit;
drivers/staging/rtl8188eu/include/xmit_osdep.h +1 -2
@@ -22,8 +22,7 @@ int rtw_xmit_entry(struct sk_buff *pkt, struct net_device *pnetdev);void rtw_os_xmit_schedule (struct adapter *padapter); -int rtw_os_xmit_resource_alloc (struct adapter *padapter, -struct xmit_buf *pxmitbuf,u32 alloc_sz); +int rtw_os_xmit_resource_alloc (struct xmit_buf *pxmitbuf,u32 alloc_sz);void rtw_os_xmit_resource_free (struct xmit_buf *pxmitbuf);void rtw_os_pkt_complete (struct adapter *padapter,struct sk_buff *pkt);
drivers/staging/rtl8188eu/os_dep/xmit_linux.c +1 -2
@@ -14,8 +14,7 @@#include <xmit_osdep.h> #include <osdep_intf.h> -int rtw_os_xmit_resource_alloc (struct adapter *padapter, -struct xmit_buf *pxmitbuf,u32 alloc_sz) +int rtw_os_xmit_resource_alloc (struct xmit_buf *pxmitbuf,u32 alloc_sz) {int i;
Signature · 1 line
2.27.0