mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
staging: r8188eu: remove dead code
if (0) is never true, remove code that is never executed. Signed-off-by: Michael Straube <straube.linux@gmail.com> Link: https://lore.kernel.org/r/20210822114014.21584-1-straube.linux@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
3eaa30d162
commit
f9f72f7f72
1 changed files with 1 additions and 4 deletions
|
@ -121,10 +121,7 @@ static void SwLedBlink(struct LED_871x *pLed)
|
|||
}
|
||||
|
||||
if (bStopBlinking) {
|
||||
/* if (padapter->pwrctrlpriv.cpwm >= PS_STATE_S2) */
|
||||
if (0) {
|
||||
SwLedOff(padapter, pLed);
|
||||
} else if ((check_fwstate(pmlmepriv, _FW_LINKED)) && (!pLed->bLedOn)) {
|
||||
if ((check_fwstate(pmlmepriv, _FW_LINKED)) && (!pLed->bLedOn)) {
|
||||
SwLedOn(padapter, pLed);
|
||||
} else if ((check_fwstate(pmlmepriv, _FW_LINKED)) && pLed->bLedOn) {
|
||||
SwLedOff(padapter, pLed);
|
||||
|
|
Loading…
Reference in a new issue