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: no need for an else after return
The else branch at the end of send_beacon is not necessary. We return in the if branch. Signed-off-by: Martin Kaiser <martin@kaiser.cx> Link: https://lore.kernel.org/r/20220409163212.241122-2-martin@kaiser.cx Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
4b6c9a3689
commit
05a1e43e48
@@ -5767,13 +5767,11 @@ unsigned int send_beacon(struct adapter *padapter)
|
||||
|
||||
if (padapter->bSurpriseRemoved || padapter->bDriverStopped)
|
||||
return _FAIL;
|
||||
if (!bxmitok) {
|
||||
if (!bxmitok)
|
||||
return _FAIL;
|
||||
} else {
|
||||
rtw_get_passing_time_ms(start);
|
||||
|
||||
return _SUCCESS;
|
||||
}
|
||||
rtw_get_passing_time_ms(start);
|
||||
return _SUCCESS;
|
||||
}
|
||||
|
||||
bool get_beacon_valid_bit(struct adapter *adapter)
|
||||
|
||||
Reference in New Issue
Block a user