drivers: staging: dgnc: Replace min with min_t
authorDarshana Padmadas <darshanapadmadas@gmail.com>
Sun, 8 Mar 2015 18:03:39 +0000 (23:33 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Mar 2015 12:30:40 +0000 (13:30 +0100)
This patch replaces min with min_t and eliminates
the following warning found by checkpatch.pl:

WARNING: min() should probably be min_t(uint, n, 12)

Signed-off-by: Darshana Padmadas <darshanapadmadas@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgnc/dgnc_neo.c

index c9a8a9825cfb25fa4d3392e7c23eea8bfecbf7c6..1268aa945e9ce2199d1f5ce5be81669e838260aa 100644 (file)
@@ -1203,7 +1203,7 @@ static void neo_copy_data_from_uart_to_queue(struct channel_t *ch)
                 * IBM pSeries platform.
                 * 15 bytes max appears to be the magic number.
                 */
-               n = min((uint) n, (uint) 12);
+               n = min_t(uint, n, 12);
 
                /*
                 * Since we are grabbing the linestatus register, which
This page took 0.025206 seconds and 5 git commands to generate.