summaryrefslogtreecommitdiffstats
path: root/drivers/staging/most
diff options
context:
space:
mode:
authorChristian Gromm <christian.gromm@microchip.com>2015-12-22 10:52:44 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-02-07 17:34:58 -0800
commit4aa575a91e637ab1c5e89c91bb59e91e518cb5f6 (patch)
treeefc6e172adfcbf31fe24ab718b049ab77cb891a8 /drivers/staging/most
parentf9f24870d84d4c77cbb330df1e1112fd97a9e12c (diff)
downloadop-kernel-dev-4aa575a91e637ab1c5e89c91bb59e91e518cb5f6.zip
op-kernel-dev-4aa575a91e637ab1c5e89c91bb59e91e518cb5f6.tar.gz
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/staging/most')
-rw-r--r--drivers/staging/most/aim-cdev/cdev.c2
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 bff891f..b293078 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;
OpenPOWER on IntegriCloud