diff options
author | Christian Gromm <christian.gromm@microchip.com> | 2015-12-22 10:52:44 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-02-07 17:34:58 -0800 |
commit | 4aa575a91e637ab1c5e89c91bb59e91e518cb5f6 (patch) | |
tree | efc6e172adfcbf31fe24ab718b049ab77cb891a8 /drivers | |
parent | f9f24870d84d4c77cbb330df1e1112fd97a9e12c (diff) | |
download | linux-4aa575a91e637ab1c5e89c91bb59e91e518cb5f6.tar.bz2 |
staging: most: simplify expression
This patch replaces the ternary ?-operator with a way simpler subtraction.
Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/most/aim-cdev/cdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/most/aim-cdev/cdev.c b/drivers/staging/most/aim-cdev/cdev.c index bff891fc0a5d..b29307820eda 100644 --- a/drivers/staging/most/aim-cdev/cdev.c +++ b/drivers/staging/most/aim-cdev/cdev.c @@ -254,7 +254,7 @@ start_copy: mbo->virt_address + channel->mbo_offs, to_copy); - copied = not_copied ? to_copy - not_copied : to_copy; + copied = to_copy - not_copied; if (count < mbo->processed_length) { channel->mbo_offs = copied; |