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:
parent
f9f24870d8
commit
4aa575a91e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue