Skip to content

Commit

Permalink
f2fs: fix sparse warnings
Browse files Browse the repository at this point in the history
This patch fixes the below warning.

sparse warnings: (new ones prefixed by >>)

>> fs/f2fs/inode.c:56:23: sparse: restricted __le32 degrades to integer
>> fs/f2fs/inode.c:56:52: sparse: restricted __le32 degrades to integer

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
  • Loading branch information
Jaegeuk Kim committed Apr 10, 2015
1 parent 1b3e27a commit adad81e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fs/f2fs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ static void __get_inode_rdev(struct inode *inode, struct f2fs_inode *ri)

static bool __written_first_block(struct f2fs_inode *ri)
{
if (ri->i_addr[0] != NEW_ADDR && ri->i_addr[0] != NULL_ADDR)
block_t addr = le32_to_cpu(ri->i_addr[0]);

if (addr != NEW_ADDR && addr != NULL_ADDR)
return true;
return false;
}
Expand Down

0 comments on commit adad81e

Please sign in to comment.