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>
This commit is contained in:
Christian Gromm 2015-12-22 10:52:44 +01:00 committed by Greg Kroah-Hartman
parent f9f24870d8
commit 4aa575a91e
1 changed files with 1 additions and 1 deletions

View File

@ -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;