staging: r8188eu: remove dead code
authorMichael Straube <straube.linux@gmail.com>
Sun, 22 Aug 2021 11:40:13 +0000 (13:40 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Aug 2021 10:20:25 +0000 (12:20 +0200)
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>
drivers/staging/r8188eu/core/rtw_led.c

index 306862aec53a6bcd933711b04fb2195a49c4bcbe..29c48f1a4fec6f740e81644f8a553f808c54e962 100644 (file)
@@ -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);