]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
staging: most: hdm-dim2: use min_t()
authorChristian Gromm <christian.gromm@microchip.com>
Wed, 28 Oct 2015 14:49:15 +0000 (15:49 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Oct 2015 23:57:19 +0000 (08:57 +0900)
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>
drivers/staging/most/hdm-dim2/dim2_hdm.c

index 558a5c8bfdd10bedf7b9ba062140918a0b0f0211..b6fe346f73b00d69116654cf9f9850c4220e8346 100644 (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;
                        }