[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230219205316.3499-1-mohammadmahfoozpersonal@gmail.com>
Date: Sun, 19 Feb 2023 15:53:14 -0500
From: Mohammad Mahfooz <mohammadmahfoozpersonal@...il.com>
To: linux-kernel@...r.kernel.org
Cc: Mohammad Mahfooz <mohammadmahfoozpersonal@...il.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Jiri Slaby <jirislaby@...nel.org>,
Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>,
Johan Hovold <johan@...nel.org>,
Alexander Vorwerk <alexander.vorwerk@...d.uni-goettingen.de>,
linux-serial@...r.kernel.org
Subject: [PATCH] serial: jsm: Use min_t instead of min
Use min_t instead of min to cut down n further if needed.
Signed-off-by: Mohammad Mahfooz <mohammadmahfoozpersonal@...il.com>
---
drivers/tty/serial/jsm/jsm_neo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/tty/serial/jsm/jsm_neo.c b/drivers/tty/serial/jsm/jsm_neo.c
index 0c78f66276cd..4cce1e423b06 100644
--- a/drivers/tty/serial/jsm/jsm_neo.c
+++ b/drivers/tty/serial/jsm/jsm_neo.c
@@ -350,7 +350,7 @@ static void neo_copy_data_from_uart_to_queue(struct jsm_channel *ch)
* IBM pSeries platform.
* 15 bytes max appears to be the magic number.
*/
- n = min((u32) n, (u32) 12);
+ n = min_t(u32, n, 12);
/*
* Since we are grabbing the linestatus register, which
--
2.34.1
Powered by blists - more mailing lists