Skip to content

Commit 63cd885

Browse files
hharrisontorvalds
authored andcommitted
ntfs: remove private wrapper of endian helpers
The base versions handle constant folding now and are shorter than these private wrappers, use them directly. Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Cc: Anton Altaparmakov <aia21@cantab.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 311d076 commit 63cd885

7 files changed

Lines changed: 215 additions & 227 deletions

File tree

‎fs/ntfs/dir.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
/**
3333
* The little endian Unicode string $I30 as a global constant.
3434
*/
35-
ntfschar I30[5] = { const_cpu_to_le16('$'), const_cpu_to_le16('I'),
36-
const_cpu_to_le16('3'), const_cpu_to_le16('0'), 0 };
35+
ntfschar I30[5] = { cpu_to_le16('$'), cpu_to_le16('I'),
36+
cpu_to_le16('3'), cpu_to_le16('0'), 0 };
3737

3838
/**
3939
* ntfs_lookup_inode_by_name - find an inode in a directory given its name

‎fs/ntfs/inode.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1975,8 +1975,7 @@ int ntfs_read_inode_mount(struct inode *vi)
19751975
goto em_put_err_out;
19761976
next_al_entry = (ATTR_LIST_ENTRY*)((u8*)al_entry +
19771977
le16_to_cpu(al_entry->length));
1978-
if (le32_to_cpu(al_entry->type) >
1979-
const_le32_to_cpu(AT_DATA))
1978+
if (le32_to_cpu(al_entry->type) > le32_to_cpu(AT_DATA))
19801979
goto em_put_err_out;
19811980
if (AT_DATA != al_entry->type)
19821981
continue;

0 commit comments

Comments
 (0)