From: Christian Gromm Date: Tue, 22 Dec 2015 09:52:44 +0000 (+0100) Subject: staging: most: simplify expression X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4aa575a91e637ab1c5e89c91bb59e91e518cb5f6;p=linux-beck.git staging: most: simplify expression This patch replaces the ternary ?-operator with a way simpler subtraction. Signed-off-by: Christian Gromm Signed-off-by: Greg Kroah-Hartman --- 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;