Skip to contentSkip to conversation

Use min_t() instead of min() in fs/ntfs/unistr.c

PATCH New Bob Miller 1 participant 1 message Nov 21, 2002 NTFS filesystem

lore
Share & tools
lore

Bob Miller

author
#0 lore raw

PATCH 1/1 Use min_t() instead of min() in fs/ntfs/unistr.c

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

fs/ntfs/unistr.c +1 -1
diff -Nru a/fs/ntfs/unistr.c b/fs/ntfs/unistr.c
@@ -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++);
Signature · 2 lines
Bob Miller					Email: [email protected]
Open Source Development Lab			Phone: 503.626.2455 Ext. 17