Skip to content

Commit

Permalink
ntfs: remove private wrapper of endian helpers
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
hharrison authored and torvalds committed Apr 1, 2009
1 parent 311d076 commit 63cd885
Show file tree
Hide file tree
Showing 7 changed files with 215 additions and 227 deletions.
4 changes: 2 additions & 2 deletions fs/ntfs/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
/**
* The little endian Unicode string $I30 as a global constant.
*/
ntfschar I30[5] = { const_cpu_to_le16('$'), const_cpu_to_le16('I'),
const_cpu_to_le16('3'), const_cpu_to_le16('0'), 0 };
ntfschar I30[5] = { cpu_to_le16('$'), cpu_to_le16('I'),
cpu_to_le16('3'), cpu_to_le16('0'), 0 };

/**
* ntfs_lookup_inode_by_name - find an inode in a directory given its name
Expand Down
3 changes: 1 addition & 2 deletions fs/ntfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -1975,8 +1975,7 @@ int ntfs_read_inode_mount(struct inode *vi)
goto em_put_err_out;
next_al_entry = (ATTR_LIST_ENTRY*)((u8*)al_entry +
le16_to_cpu(al_entry->length));
if (le32_to_cpu(al_entry->type) >
const_le32_to_cpu(AT_DATA))
if (le32_to_cpu(al_entry->type) > le32_to_cpu(AT_DATA))
goto em_put_err_out;
if (AT_DATA != al_entry->type)
continue;
Expand Down
Loading

0 comments on commit 63cd885

Please sign in to comment.