Commit a143aa2a authored by Matthias Beyer's avatar Matthias Beyer Committed by Greg Kroah-Hartman

Staging: bcm: led_control.c: Replaced doubled if-check by logical OR in one check

Signed-off-by: default avatarMatthias Beyer <mail@beyermatthias.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 89550511
......@@ -116,14 +116,11 @@ static INT blink_in_normal_bandwidth(struct bcm_mini_adapter *ad,
if (*time > 0) {
/* Blink both Tx and Rx LEDs */
if (LED_Blink(ad, 1 << GPIO_Num_tx, uiTxLedIndex, *timeout,
*time, currdriverstate) == EVENT_SIGNALED)
return EVENT_SIGNALED;
if (LED_Blink(ad, 1 << GPIO_Num_rx, uiRxLedIndex, *timeout,
*time, currdriverstate) == EVENT_SIGNALED)
if ((LED_Blink(ad, 1 << GPIO_Num_tx, uiTxLedIndex, *timeout,
*time, currdriverstate) == EVENT_SIGNALED) ||
(LED_Blink(ad, 1 << GPIO_Num_rx, uiRxLedIndex, *timeout,
*time, currdriverstate) == EVENT_SIGNALED))
return EVENT_SIGNALED;
}
if (*time == *time_tx) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment