mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 12:42:02 +00: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:
parent
718693c84d
commit
ca7efd71c3
@ -1816,7 +1816,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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user