staging: r8188eu: core: remove condition with no effect

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>
This commit is contained in:
Saurav Girepunje 2021-08-22 01:53:08 +05:30 committed by Greg Kroah-Hartman
parent f7766f1b00
commit 3f60c32f15
1 changed files with 1 additions and 4 deletions

View 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);