Skip to content

Commit

Permalink
rtl8712: remove redundant if statement
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Niklas Söderlund authored and Greg Kroah-Hartman committed Mar 11, 2013
1 parent eb79b3e commit e85b315
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions drivers/staging/rtl8712/rtl8712_led.c
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit e85b315

Please sign in to comment.