diff options
author | Saurav Girepunje <saurav.girepunje@gmail.com> | 2021-08-22 01:53:08 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-08-26 12:33:24 +0200 |
commit | 3f60c32f15b0d2956074d684526b128505be0bb7 (patch) | |
tree | 12b0fafe89018485f399cd1288789fcc5255b33b /drivers/staging | |
parent | f7766f1b0030e7af179a5e75df52838268102fab (diff) |
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>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/r8188eu/core/rtw_led.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/staging/r8188eu/core/rtw_led.c b/drivers/staging/r8188eu/core/rtw_led.c index cd27873c3e63..b33e34cce12e 100644 --- a/drivers/staging/r8188eu/core/rtw_led.c +++ b/drivers/staging/r8188eu/core/rtw_led.c @@ -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); |