When WPS fails, WPS blinking is no longer in progress. The if statement can be removed. Signed-off-by: Martin Kaiser <martin@xxxxxxxxx> --- drivers/staging/r8188eu/core/rtw_led.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/r8188eu/core/rtw_led.c b/drivers/staging/r8188eu/core/rtw_led.c index 80d9d8184fcd..f5af2e25e34a 100644 --- a/drivers/staging/r8188eu/core/rtw_led.c +++ b/drivers/staging/r8188eu/core/rtw_led.c @@ -358,9 +358,7 @@ void rtw_led_control(struct adapter *padapter, enum LED_CTL_MODE LedAction) break; case LED_CTL_STOP_WPS_FAIL: cancel_delayed_work(&pLed->blink_work); - if (pLed->bLedWPSBlinkInProgress) { - pLed->bLedWPSBlinkInProgress = false; - } + pLed->bLedWPSBlinkInProgress = false; pLed->bLedNoLinkBlinkInProgress = true; pLed->CurrLedState = LED_BLINK_SLOWLY; if (pLed->bLedOn) -- 2.30.2