Commit a32c00ac authored by Anton Altaparmakov's avatar Anton Altaparmakov

NTFS: Remove silly (__force le32) casts from __ntfs_is_magic{,p}

      helper functions.  Thanks to Al Viro for spotting them.
Signed-off-by: default avatarAnton Altaparmakov <aia21@cantab.net>
parent c0ddaa13
......@@ -143,13 +143,13 @@ typedef le32 NTFS_RECORD_TYPE;
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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment