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:
parent
06e7ecf287
commit
e6d6cbe303
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue