Always update the status variables in rtw_led_control when we start
blinking because of no link. The code is easier to understand without
the if conditions.
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20220822201329.95559-4-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
 
                cancel_delayed_work(&pLed->blink_work);
 
-               if (pLed->bLedLinkBlinkInProgress)
-                       pLed->bLedLinkBlinkInProgress = false;
-
-               if (pLed->bLedBlinkInProgress)
-                       pLed->bLedBlinkInProgress = false;
-
+               pLed->bLedLinkBlinkInProgress = false;
+               pLed->bLedBlinkInProgress = false;
                pLed->bLedNoLinkBlinkInProgress = true;
+
                pLed->CurrLedState = LED_BLINK_SLOWLY;
                if (pLed->bLedOn)
                        pLed->BlinkingLedState = RTW_LED_OFF;