Commit e6d6cbe3 authored by Christian Gromm's avatar Christian Gromm Committed by Greg Kroah-Hartman
Browse files

staging: most: use min_t



This patch replaces min with min_t.

Signed-off-by: default avatarChristian Gromm <christian.gromm@microchip.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 06e7ecf2
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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,