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

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
...@@ -254,7 +254,7 @@ aim_read(struct file *filp, char __user *buf, size_t count, loff_t *offset) ...@@ -254,7 +254,7 @@ aim_read(struct file *filp, char __user *buf, size_t count, loff_t *offset)
mbo->virt_address + channel->mbo_offs, mbo->virt_address + channel->mbo_offs,
to_copy); to_copy);
copied = not_copied ? to_copy - not_copied : to_copy; copied = to_copy - not_copied;
if (count < mbo->processed_length) { if (count < mbo->processed_length) {
channel->mbo_offs = copied; channel->mbo_offs = copied;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment