diff options
| author | Matthias Beyer <mail@beyermatthias.de> | 2014-06-23 23:18:27 +0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-06-27 05:02:14 +0400 |
| commit | 8955051192efcd2cb3903997387743a52de4472a (patch) | |
| tree | 4121d5823be87e93a60776957a3c2531c7482fa5 /drivers | |
| parent | 9c805bd9e45a6b114cbad49f1d4f666604ab6e96 (diff) | |
| download | linux-8955051192efcd2cb3903997387743a52de4472a.tar.xz | |
Staging: bcm: led_control.c: Replaced time selecting ifelse with ternary operator
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/staging/bcm/led_control.c | 6 |
1 files changed, 2 insertions, 4 deletions
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, |
