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

This patch replaces the usage of min() by 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-10-28 15:49:15 +01:00 committed by Greg Kroah-Hartman
parent 806535b623
commit 7f9cacb62d
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}