mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 14:04:54 +02:00
staging: r8188eu: simplify rtl8188eu_xmit_tasklet
Simplify the rtl8188eu_xmit_tasklet function. Remove an unnecessary temporary variable and reformat the code. Signed-off-by: Martin Kaiser <martin@kaiser.cx> Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150 Link: https://lore.kernel.org/r/20221230180646.91008-7-martin@kaiser.cx Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
4126f99b9e
commit
9431a9370f
|
|
@ -481,22 +481,14 @@ u32 rtw_read_port(struct adapter *adapter, u8 *rmem)
|
|||
|
||||
void rtl8188eu_xmit_tasklet(unsigned long priv)
|
||||
{
|
||||
int ret = false;
|
||||
struct adapter *adapt = (struct adapter *)priv;
|
||||
struct xmit_priv *pxmitpriv = &adapt->xmitpriv;
|
||||
|
||||
if (check_fwstate(&adapt->mlmepriv, _FW_UNDER_SURVEY))
|
||||
return;
|
||||
|
||||
while (1) {
|
||||
if ((adapt->bDriverStopped) ||
|
||||
(adapt->bSurpriseRemoved) ||
|
||||
(adapt->bWritePortCancel))
|
||||
do {
|
||||
if (adapt->bDriverStopped || adapt->bSurpriseRemoved || adapt->bWritePortCancel)
|
||||
break;
|
||||
|
||||
ret = rtl8188eu_xmitframe_complete(adapt, pxmitpriv);
|
||||
|
||||
if (!ret)
|
||||
break;
|
||||
}
|
||||
} while (rtl8188eu_xmitframe_complete(adapt, pxmitpriv));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user