staging: r8188eu: remove unnecessary assignment
authorMichael Straube <straube.linux@gmail.com>
Sun, 17 Oct 2021 17:06:29 +0000 (19:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Oct 2021 14:45:01 +0000 (16:45 +0200)
The assignment "pLed->BlinkTimes = 0" is in a code path that is
executed only if pLed->BlinkTimes is 0. Remove this unnecessary
assignment.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20211017170629.13785-1-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_led.c

index 09d8c4e8586398ee30ebcd069bf812893fb3fbd7..0e3453639a8b04ad2d410dd9a147cdd11c9e0ee3 100644 (file)
@@ -142,7 +142,6 @@ static void SwLedBlink1(struct LED_871x *pLed)
                                        pLed->BlinkingLedState = RTW_LED_ON;
                                _set_timer(&pLed->BlinkTimer, LED_BLINK_NO_LINK_INTERVAL_ALPHA);
                        }
-                       pLed->BlinkTimes = 0;
                        pLed->bLedBlinkInProgress = false;
                } else {
                        if (pLed->bLedOn)