Riina Kikas wrote:-This patch fixes warning "comparison of unsigned expression >= 0 is always true"
occuring on line 38
Signed-off-by: Riina Kikas <Riina.Kikas@xxxxxxx>
--- a/fs/ntfs/collate.h 2004-10-18 21:53:06.000000000 +0000
+++ b/fs/ntfs/collate.h 2004-12-04 13:26:03.000000000 +0000
@@ -37,7 +37,7 @@
if (unlikely(cr != COLLATION_BINARY && cr != COLLATION_NTOFS_ULONG))
return FALSE;
i = le32_to_cpu(cr);
- if (likely(((i >= 0) && (i <= 0x02)) ||
+ if (likely(cr <= 0x02 ||
Do we really want to be doing any operations on "cr", since it's not known what endianness of cpu we're on?
Chris