mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-11 05:17:10 +09:00
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>
This commit is contained in:
committed by
Jaegeuk Kim
parent
3584e26756
commit
880094a9a4
@@ -1817,7 +1817,7 @@ static int f2fs_xattr_fiemap(struct inode *inode,
|
||||
|
||||
err = fiemap_fill_next_extent(fieinfo, 0, phys, len, flags);
|
||||
trace_f2fs_fiemap(inode, 0, phys, len, flags, err);
|
||||
if (err || err == 1)
|
||||
if (err)
|
||||
return err;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user