mirror of https://gitee.com/openkylin/linux.git
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:
parent
f7766f1b00
commit
3f60c32f15
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue