rtl8712: remove redundant if statement
authorNiklas Söderlund <niso@kth.se>
Wed, 27 Feb 2013 19:40:06 +0000 (20:40 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 11 Mar 2013 16:49:55 +0000 (09:49 -0700)
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>
drivers/staging/rtl8712/rtl8712_led.c

index c9eb4b7..6cb1a0a 100644 (file)
@@ -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),