From: Christian Gromm Date: Tue, 22 Dec 2015 09:52:46 +0000 (+0100) Subject: staging: most: use min_t X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e6d6cbe303c5cfa581842ce4ba4899ba313931ab;p=linux-beck.git staging: most: use min_t This patch replaces min with min_t. Signed-off-by: Christian Gromm Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/most/aim-cdev/cdev.c b/drivers/staging/most/aim-cdev/cdev.c index 4bf0322a99eb..6ee4eb2177bd 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,