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>
This commit is contained in:
Christian Gromm 2015-12-22 10:52:46 +01:00 committed by Greg Kroah-Hartman
parent 06e7ecf287
commit e6d6cbe303
1 changed files with 3 additions and 1 deletions

View File

@ -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,