[PATCH 2.6] clean-up: fixes "unsigned>=0" warning
From: Riina Kikas
Date: Mon Dec 06 2004 - 15:50:26 EST
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 ||
((i >= 0x10) && (i <= 0x13))))
return TRUE;
return FALSE;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/