summaryrefslogtreecommitdiffstats
path: root/drivers/staging/most
diff options
context:
space:
mode:
authorChristian Gromm <christian.gromm@microchip.com>2015-12-22 10:52:46 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-02-07 17:34:58 -0800
commite6d6cbe303c5cfa581842ce4ba4899ba313931ab (patch)
treed135ed0f5368cceeedf367ca8e4be0242e1454ae /drivers/staging/most
parent06e7ecf287e7d2414c381d5312d6c81e79a7520d (diff)
downloadop-kernel-dev-e6d6cbe303c5cfa581842ce4ba4899ba313931ab.zip
op-kernel-dev-e6d6cbe303c5cfa581842ce4ba4899ba313931ab.tar.gz
staging: most: use min_t
This patch replaces min with min_t. 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.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/staging/most/aim-cdev/cdev.c b/drivers/staging/most/aim-cdev/cdev.c
index 4bf0322..6ee4eb2 100644
--- a/drivers/staging/most/aim-cdev/cdev.c
+++ b/drivers/staging/most/aim-cdev/cdev.c
@@ -246,7 +246,9 @@ start_copy:
return -EIO;
}
- to_copy = min(count, (size_t)mbo->processed_length - channel->mbo_offs);
+ to_copy = min_t(size_t,
+ count,
+ mbo->processed_length - channel->mbo_offs);
not_copied = copy_to_user(buf,
mbo->virt_address + channel->mbo_offs,
OpenPOWER on IntegriCloud