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

Staging: bcm: led_control.c: Replaced time selecting ifelse with ternary operator

Signed-off-by: default avatarMatthias Beyer <mail@beyermatthias.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9c805bd9
......@@ -112,10 +112,8 @@ static INT blink_in_normal_bandwidth(struct bcm_mini_adapter *ad,
* Assign minimum number of blinks of
* either Tx or Rx.
*/
if (*time_tx > *time_rx)
*time = *time_rx;
else
*time = *time_tx;
*time = (*time_tx > *time_rx ? *time_rx : *time_tx);
if (*time > 0) {
/* Blink both Tx and Rx LEDs */
if (LED_Blink(ad, 1 << GPIO_Num_tx, uiTxLedIndex, *timeout,
......
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