From: Matthias Beyer Date: Mon, 23 Jun 2014 19:18:27 +0000 (+0200) Subject: Staging: bcm: led_control.c: Replaced time selecting ifelse with ternary operator X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8955051192efcd2cb3903997387743a52de4472a;p=linux-beck.git Staging: bcm: led_control.c: Replaced time selecting ifelse with ternary operator Signed-off-by: Matthias Beyer Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/bcm/led_control.c b/drivers/staging/bcm/led_control.c index a387c6a27b83..8a59115c24f4 100644 --- a/drivers/staging/bcm/led_control.c +++ b/drivers/staging/bcm/led_control.c @@ -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,