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:
Martin Kaiser
2022-04-09 18:32:03 +02:00
committed by Greg Kroah-Hartman
parent 4b6c9a3689
commit 05a1e43e48

View File

@@ -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)