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

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

Staging: bcm: led_control.c: Refactored line lengths

parent ea20548a
Loading
Loading
Loading
Loading
+10 −18
Original line number Diff line number Diff line
@@ -118,37 +118,29 @@ static INT blink_in_normal_bandwidth(struct bcm_mini_adapter *ad,
		*num_of_time = *num_of_time_tx;
	if (*num_of_time > 0) {
		/* Blink both Tx and Rx LEDs */
		if (LED_Blink(ad, 1 << GPIO_Num_tx,
				uiTxLedIndex, *timeout,
				*num_of_time, currdriverstate)
					== EVENT_SIGNALED)
		if (LED_Blink(ad, 1 << GPIO_Num_tx, uiTxLedIndex, *timeout,
			      *num_of_time, currdriverstate) == EVENT_SIGNALED)
			return EVENT_SIGNALED;

		if (LED_Blink(ad, 1 << GPIO_Num_rx,
				uiRxLedIndex, *timeout,
				*num_of_time, currdriverstate)
					== EVENT_SIGNALED)
		if (LED_Blink(ad, 1 << GPIO_Num_rx, uiRxLedIndex, *timeout,
			      *num_of_time, currdriverstate) == EVENT_SIGNALED)
			return EVENT_SIGNALED;

	}

	if (*num_of_time == *num_of_time_tx) {
		/* Blink pending rate of Rx */
		if (LED_Blink(ad, (1 << GPIO_Num_rx),
				uiRxLedIndex, *timeout,
		if (LED_Blink(ad, (1 << GPIO_Num_rx), uiRxLedIndex, *timeout,
			      *num_of_time_rx - *num_of_time,
				currdriverstate)
					== EVENT_SIGNALED)
			      currdriverstate) == EVENT_SIGNALED)
			return EVENT_SIGNALED;

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

		*num_of_time = *num_of_time_tx;