diff options
author | Christian Gromm <christian.gromm@microchip.com> | 2015-10-28 14:49:15 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-28 23:57:19 (GMT) |
commit | 7f9cacb62d94c4828827ead22d9b6e7d6d7aa1e8 (patch) | |
tree | b275d9c55ee329026431ccf99dd567059441164b | |
parent | 806535b623b9bfd501728269ed1f62245c96192b (diff) | |
download | linux-7f9cacb62d94c4828827ead22d9b6e7d6d7aa1e8.tar.xz |
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>
-rw-r--r-- | drivers/staging/most/hdm-dim2/dim2_hdm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/most/hdm-dim2/dim2_hdm.c b/drivers/staging/most/hdm-dim2/dim2_hdm.c index 558a5c8..b6fe346 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; } |