From 7f9cacb62d94c4828827ead22d9b6e7d6d7aa1e8 Mon Sep 17 00:00:00 2001 From: Christian Gromm Date: Wed, 28 Oct 2015 15:49:15 +0100 Subject: [PATCH] staging: most: hdm-dim2: use min_t() This patch replaces the usage of min() by min_t(). Signed-off-by: Christian Gromm Signed-off-by: Greg Kroah-Hartman --- drivers/staging/most/hdm-dim2/dim2_hdm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/most/hdm-dim2/dim2_hdm.c b/drivers/staging/most/hdm-dim2/dim2_hdm.c index 558a5c8bfdd1..b6fe346f73b0 100644 --- a/drivers/staging/most/hdm-dim2/dim2_hdm.c +++ b/drivers/staging/most/hdm-dim2/dim2_hdm.c @@ -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; } -- 2.20.1