Use min_t() instead of min() in fs/ntfs/unistr.c
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
@@ -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