Skip to contentSkip to conversation

clean-up: fixes "unsigned<0" warning

PATCH New Riina Kikas 1 participant 1 message Dec 6, 2004 NTFS filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clean-up: fixes "unsigned<0" warning

This patch fixes warning "comparison of unsigned expression < 0 is always false" occuring on line 110

fs/ntfs/collate.c +0 -1
@@ -109,7 +109,6 @@
 	 */
 	BUG_ON(cr != COLLATION_BINARY && cr != COLLATION_NTOFS_ULONG);
 	i = le32_to_cpu(cr);
-	BUG_ON(i < 0);
 	if (i <= 0x02)
 		return ntfs_do_collate0x0[i](vol, data1, data1_len,
 				data2, data2_len);