Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

staging: most: hdm-dim2: use min_t()



This patch replaces the usage of min() by min_t().

Signed-off-by: default avatarChristian Gromm <christian.gromm@microchip.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 806535b6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -385,7 +385,8 @@ static void service_done_flag(struct dim2_hdm *dev, int ch_idx)
					(u32)data[0] * 256 + data[1] + 2;

				mbo->processed_length =
					min(data_size, (u32)mbo->buffer_length);
					min_t(u32, data_size,
					      mbo->buffer_length);
			} else {
				mbo->processed_length = mbo->buffer_length;
			}