staging: r8188eu: core: remove condition with no effect
authorSaurav Girepunje <saurav.girepunje@gmail.com>
Sat, 21 Aug 2021 20:23:08 +0000 (01:53 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Aug 2021 10:33:24 +0000 (12:33 +0200)
Remove the condition with no effect (if == else) in rtw_led.c
file.

Acked-by: Phillip Potter <phil@philpotter.co.uk>
Signed-off-by: Saurav Girepunje <saurav.girepunje@gmail.com>
Link: https://lore.kernel.org/r/YSFgrLUfXzgcT6k4@user
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_led.c

index cd27873..b33e34c 100644 (file)
@@ -145,10 +145,7 @@ static void SwLedBlink(struct LED_871x *pLed)
                        _set_timer(&pLed->BlinkTimer, LED_BLINK_SLOWLY_INTERVAL);
                        break;
                case LED_BLINK_WPS:
-                       if (pLed->BlinkingLedState == RTW_LED_ON)
-                               _set_timer(&pLed->BlinkTimer, LED_BLINK_LONG_INTERVAL);
-                       else
-                               _set_timer(&pLed->BlinkTimer, LED_BLINK_LONG_INTERVAL);
+                       _set_timer(&pLed->BlinkTimer, LED_BLINK_LONG_INTERVAL);
                        break;
                default:
                        _set_timer(&pLed->BlinkTimer, LED_BLINK_SLOWLY_INTERVAL);