diff options
author | Niklas Söderlund <niso@kth.se> | 2013-02-27 20:40:06 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-03-11 09:49:55 -0700 |
commit | e85b315e2c2a2196ca15f85fa5501f55bb0a46fb (patch) | |
tree | ae608268350609f94e0292de1089bf01f03d46e3 /drivers/staging/rtl8712 | |
parent | eb79b3e1f05193dcbd5aadf1b669b9ff367fd109 (diff) | |
download | linux-e85b315e2c2a2196ca15f85fa5501f55bb0a46fb.tar.gz linux-e85b315e2c2a2196ca15f85fa5501f55bb0a46fb.tar.bz2 linux-e85b315e2c2a2196ca15f85fa5501f55bb0a46fb.zip |
rtl8712: remove redundant if statement
Same result no matter what path is taken.
Signed-off-by: Niklas Söderlund <niso@kth.se>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8712')
-rw-r--r-- | drivers/staging/rtl8712/rtl8712_led.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/staging/rtl8712/rtl8712_led.c b/drivers/staging/rtl8712/rtl8712_led.c index c9eb4b74799b..6cb1a0af5177 100644 --- a/drivers/staging/rtl8712/rtl8712_led.c +++ b/drivers/staging/rtl8712/rtl8712_led.c @@ -267,12 +267,8 @@ static void SwLedBlink(struct LED_871x *pLed) LED_BLINK_SLOWLY_INTERVAL); break; case LED_BLINK_WPS: - if (pLed->BlinkingLedState == 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), |