Messages in this thread Patch in this message | | | Date | Tue, 28 Sep 2004 21:38:32 +0100 (BST) | From | Anton Altaparmakov <> | Subject | [PATCH 1/4] Re: [2.6-BK-URL] NTFS: Final sparse annotation/fixes. |
| |
RESEND: This is patch 1/4 in the series. It contains the following ChangeSet:
<aia21@cantab.net> (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@cantab.net>
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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |