Commit 4aa575a9 authored by Christian Gromm's avatar Christian Gromm Committed by Greg Kroah-Hartman
Browse files

staging: most: simplify expression



This patch replaces the ternary ?-operator with a way simpler subtraction.

Signed-off-by: default avatarChristian Gromm <christian.gromm@microchip.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f9f24870
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;