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:
parent
806535b623
commit
7f9cacb62d
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue