linux-serial.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] serial: jsm: Use min_t instead of min
@ 2023-02-19 20:53 Mohammad Mahfooz
  2023-02-20 11:52 ` Jiri Slaby
  0 siblings, 1 reply; 6+ messages in thread
From: Mohammad Mahfooz @ 2023-02-19 20:53 UTC (permalink / raw)
  To: linux-kernel
  Cc: Mohammad Mahfooz, Greg Kroah-Hartman, Jiri Slaby,
	Ilpo Järvinen, Johan Hovold, Alexander Vorwerk, linux-serial

Use min_t instead of min to cut down n further if needed.

Signed-off-by: Mohammad Mahfooz <mohammadmahfoozpersonal@gmail.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


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-02-21 13:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-19 20:53 [PATCH] serial: jsm: Use min_t instead of min Mohammad Mahfooz
2023-02-20 11:52 ` Jiri Slaby
2023-02-21  1:03   ` [PATCH] serial: jsm: Change n to unsigned int Mohammad Mahfooz
2023-02-21  6:07     ` Jiri Slaby
2023-02-21 12:48   ` [PATCH] serial: jsm: Use min_t instead of min David Laight
2023-02-21 13:17     ` Ilpo Järvinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).