Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ea20548a authored by Matthias Beyer's avatar Matthias Beyer Committed by Greg Kroah-Hartman
Browse files

Staging: bcm: led_control.c: Removed dead code



This patch removes the never-entered else-block inside
blink_in_normal_bandwidth(). The condition of the preceding if statement
is always true.

Signed-off-by: default avatarMatthias Beyer <mail@beyermatthias.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 60654a84
Loading
Loading
Loading
Loading
+37 −61
Original line number Diff line number Diff line
@@ -108,13 +108,6 @@ static INT blink_in_normal_bandwidth(struct bcm_mini_adapter *ad,
				     enum bcm_led_events currdriverstate,
				     ulong *timeout)
{
	bool bBlinkBothLED = TRUE;

	/*
	 * Blink Tx and Rx LED when both Tx and Rx is
	 * in normal bandwidth
	 */
	if (bBlinkBothLED) {
	/*
	 * Assign minimum number of blinks of
	 * either Tx or Rx.
@@ -160,23 +153,6 @@ static INT blink_in_normal_bandwidth(struct bcm_mini_adapter *ad,

		*num_of_time = *num_of_time_tx;
	}
	} else {
		if (*num_of_time == *num_of_time_tx) {
			/* Blink pending rate of Rx */
			if (LED_Blink(ad, 1 << GPIO_Num_tx,
					uiTxLedIndex, *timeout,
					*num_of_time, currdriverstate)
						== EVENT_SIGNALED)
				return EVENT_SIGNALED;
		} else {
			/* Blink pending rate of Tx */
			if (LED_Blink(ad, 1 << GPIO_Num_rx,
					uiRxLedIndex, *timeout,
					*num_of_time, currdriverstate)
						== EVENT_SIGNALED)
				return EVENT_SIGNALED;
		}
	}

	return 0;
}