mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 17:03:47 -04:00
staging: r8188eu: summarize two if statements
Summarize the two if statements at the end of send_beacon. Signed-off-by: Martin Kaiser <martin@kaiser.cx> Link: https://lore.kernel.org/r/20220409163212.241122-4-martin@kaiser.cx Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
24a24f95a2
commit
72b94dcb9a
@@ -5763,9 +5763,7 @@ unsigned int send_beacon(struct adapter *padapter)
|
||||
} while ((poll % 10) != 0 && !bxmitok && !padapter->bSurpriseRemoved && !padapter->bDriverStopped);
|
||||
} while (!bxmitok && issue < 100 && !padapter->bSurpriseRemoved && !padapter->bDriverStopped);
|
||||
|
||||
if (padapter->bSurpriseRemoved || padapter->bDriverStopped)
|
||||
return _FAIL;
|
||||
if (!bxmitok)
|
||||
if (padapter->bSurpriseRemoved || padapter->bDriverStopped || !bxmitok)
|
||||
return _FAIL;
|
||||
|
||||
return _SUCCESS;
|
||||
|
||||
Reference in New Issue
Block a user