Commit c00ed7dd authored by Martin Kaiser's avatar Martin Kaiser Committed by Greg Kroah-Hartman

staging: r8188eu: remove redundant parameter

The rtl8188eu_xmitframe_complete function takes two parameters: adapter
and xmit_priv. xmit_priv is part of struct adapter, this parameter can be
removed.
Signed-off-by: default avatarMartin Kaiser <martin@kaiser.cx>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150
Link: https://lore.kernel.org/r/20230123205342.229589-13-martin@kaiser.cxSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8d97399b
...@@ -365,8 +365,9 @@ static u32 xmitframe_need_length(struct xmit_frame *pxmitframe) ...@@ -365,8 +365,9 @@ static u32 xmitframe_need_length(struct xmit_frame *pxmitframe)
return len; return len;
} }
bool rtl8188eu_xmitframe_complete(struct adapter *adapt, struct xmit_priv *pxmitpriv) bool rtl8188eu_xmitframe_complete(struct adapter *adapt)
{ {
struct xmit_priv *pxmitpriv = &adapt->xmitpriv;
struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(adapt); struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(adapt);
struct xmit_frame *pxmitframe = NULL; struct xmit_frame *pxmitframe = NULL;
struct xmit_frame *pfirstframe = NULL; struct xmit_frame *pfirstframe = NULL;
......
...@@ -463,7 +463,6 @@ u32 rtw_read_port(struct adapter *adapter, u8 *rmem) ...@@ -463,7 +463,6 @@ u32 rtw_read_port(struct adapter *adapter, u8 *rmem)
void rtl8188eu_xmit_tasklet(unsigned long priv) void rtl8188eu_xmit_tasklet(unsigned long priv)
{ {
struct adapter *adapt = (struct adapter *)priv; struct adapter *adapt = (struct adapter *)priv;
struct xmit_priv *pxmitpriv = &adapt->xmitpriv;
if (check_fwstate(&adapt->mlmepriv, _FW_UNDER_SURVEY)) if (check_fwstate(&adapt->mlmepriv, _FW_UNDER_SURVEY))
return; return;
...@@ -471,5 +470,5 @@ void rtl8188eu_xmit_tasklet(unsigned long priv) ...@@ -471,5 +470,5 @@ void rtl8188eu_xmit_tasklet(unsigned long priv)
do { do {
if (adapt->bDriverStopped || adapt->bSurpriseRemoved || adapt->bWritePortCancel) if (adapt->bDriverStopped || adapt->bSurpriseRemoved || adapt->bWritePortCancel)
break; break;
} while (rtl8188eu_xmitframe_complete(adapt, pxmitpriv)); } while (rtl8188eu_xmitframe_complete(adapt));
} }
...@@ -125,7 +125,6 @@ s32 rtl8188eu_hal_xmit(struct adapter *padapter, struct xmit_frame *frame); ...@@ -125,7 +125,6 @@ s32 rtl8188eu_hal_xmit(struct adapter *padapter, struct xmit_frame *frame);
s32 rtl8188eu_mgnt_xmit(struct adapter *padapter, struct xmit_frame *frame); s32 rtl8188eu_mgnt_xmit(struct adapter *padapter, struct xmit_frame *frame);
s32 rtl8188eu_xmit_buf_handler(struct adapter *padapter); s32 rtl8188eu_xmit_buf_handler(struct adapter *padapter);
void rtl8188eu_xmit_tasklet(unsigned long priv); void rtl8188eu_xmit_tasklet(unsigned long priv);
bool rtl8188eu_xmitframe_complete(struct adapter *padapter, bool rtl8188eu_xmitframe_complete(struct adapter *padapter);
struct xmit_priv *pxmitpriv);
#endif /* __RTL8188E_XMIT_H__ */ #endif /* __RTL8188E_XMIT_H__ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment