aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/r8188eu
diff options
context:
space:
mode:
authorSaurav Girepunje <saurav.girepunje@gmail.com>2021-08-22 01:53:08 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-08-26 12:33:24 +0200
commit3f60c32f15b0d2956074d684526b128505be0bb7 (patch)
tree12b0fafe89018485f399cd1288789fcc5255b33b /drivers/staging/r8188eu
parentstaging: r8188eu: remove ethernet.h header file (diff)
downloadlinux-dev-3f60c32f15b0d2956074d684526b128505be0bb7.tar.xz
linux-dev-3f60c32f15b0d2956074d684526b128505be0bb7.zip
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/r8188eu')
-rw-r--r--drivers/staging/r8188eu/core/rtw_led.c5
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);