[PATCH 1/4] Re: [2.6-BK-URL] NTFS: Final sparse annotation/fixes.

From: Anton Altaparmakov
Date: Tue Sep 28 2004 - 15:42:44 EST


RESEND: This is patch 1/4 in the series. It contains the following
ChangeSet:

<aia21@xxxxxxxxxx> (04/09/26 1.1983.1.1)
NTFS: Remove silly (__force le32) casts from __ntfs_is_magic{,p}
helper functions. Thanks to Al Viro for spotting them.

Signed-off-by: Anton Altaparmakov <aia21@xxxxxxxxxx>

Best regards,

Anton
--
Anton Altaparmakov <aia21 at cam.ac.uk> (replace at with @)
Unix Support, Computing Service, University of Cambridge, CB2 3QH, UK
Linux NTFS maintainer / IRC: #ntfs on irc.freenode.net
WWW: http://linux-ntfs.sf.net/, http://www-stu.christs.cam.ac.uk/~aia21/

===================================================================

diff -Nru a/fs/ntfs/layout.h b/fs/ntfs/layout.h
--- a/fs/ntfs/layout.h 2004-09-28 21:32:31 +01:00
+++ b/fs/ntfs/layout.h 2004-09-28 21:32:31 +01:00
@@ -143,13 +143,13 @@

static inline BOOL __ntfs_is_magic(le32 x, NTFS_RECORD_TYPE r)
{
- return (x == (__force le32)r);
+ return (x == r);
}
#define ntfs_is_magic(x, m) __ntfs_is_magic(x, magic_##m)

static inline BOOL __ntfs_is_magicp(le32 *p, NTFS_RECORD_TYPE r)
{
- return (*p == (__force le32)r);
+ return (*p == r);
}
#define ntfs_is_magicp(p, m) __ntfs_is_magicp(p, magic_##m)

-
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/