diff options
author | Zhang Qilong <zhangqilong3@huawei.com> | 2022-09-23 09:17:55 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2022-10-04 22:31:44 +0200 |
commit | ca7efd71c3dffd5442b448dd553a903425222597 (patch) | |
tree | 18a14051646643daed308225f6e21f28cfdb5545 /fs/f2fs | |
parent | f2fs: introduce cp_status sysfs entry (diff) | |
download | linux-ca7efd71c3dffd5442b448dd553a903425222597.tar.xz linux-ca7efd71c3dffd5442b448dd553a903425222597.zip |
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>
Diffstat (limited to 'fs/f2fs')
-rw-r--r-- | fs/f2fs/data.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index a45b6ab2e2a5..a921cd40db78 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -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; } |