mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [TRIVIAL PATCH 2.5.48] Use min_t() instead of min() in fs/ntfs/unistr.c
@ 2002-11-21 22:30 Bob Miller
  0 siblings, 0 replies; only message in thread
From: Bob Miller @ 2002-11-21 22:30 UTC (permalink / raw)
  To: trivial; +Cc: linux-kernel


This change removes a "duplicate 'const'" compiler warning.

diff -Nru a/fs/ntfs/unistr.c b/fs/ntfs/unistr.c
--- a/fs/ntfs/unistr.c	Thu Nov 21 13:51:26 2002
+++ b/fs/ntfs/unistr.c	Thu Nov 21 13:51:26 2002
@@ -99,7 +99,7 @@
 	u32 cnt, min_len;
 	uchar_t c1, c2;
 
-	min_len = min(name1_len, name2_len);
+	min_len = min_t(const u32, name1_len, name2_len);
 	for (cnt = 0; cnt < min_len; ++cnt) {
 		c1 = le16_to_cpu(*name1++);
 		c2 = le16_to_cpu(*name2++);
-- 
Bob Miller					Email: rem@osdl.org
Open Source Development Lab			Phone: 503.626.2455 Ext. 17

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-11-21 22:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-21 22:30 [TRIVIAL PATCH 2.5.48] Use min_t() instead of min() in fs/ntfs/unistr.c Bob Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®