Skip to content

Commit ca7efd7

Browse files
Zhang QilongJaegeuk Kim
authored andcommitted
f2fs: remove the unnecessary check in f2fs_xattr_fiemap
Whehter or not error occurs, checking "err == 1" is unnecessary in f2fs_xattr_fiemap(), and just remove it here. Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
1 parent 718693c commit ca7efd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/f2fs/data.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1816,7 +1816,7 @@ static int f2fs_xattr_fiemap(struct inode *inode,
18161816

18171817
err = fiemap_fill_next_extent(fieinfo, 0, phys, len, flags);
18181818
trace_f2fs_fiemap(inode, 0, phys, len, flags, err);
1819-
if (err || err == 1)
1819+
if (err)
18201820
return err;
18211821
}
18221822

0 commit comments

Comments
 (0)