if (0) is never true, remove code that is never executed. Signed-off-by: Michael Straube <straube.linux@xxxxxxxxx> --- drivers/staging/r8188eu/core/rtw_led.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/staging/r8188eu/core/rtw_led.c b/drivers/staging/r8188eu/core/rtw_led.c index 306862aec53a..29c48f1a4fec 100644 --- a/drivers/staging/r8188eu/core/rtw_led.c +++ b/drivers/staging/r8188eu/core/rtw_led.c @@ -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); -- 2.32.0