summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhang Qilong <zhangqilong3@huawei.com>2022-09-23 15:17:55 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2022-10-04 13:31:44 -0700
commitca7efd71c3dffd5442b448dd553a903425222597 (patch)
tree18a14051646643daed308225f6e21f28cfdb5545
parent718693c84d8f4b235d030c377258f12f38a71c67 (diff)
downloadlinux-ca7efd71c3dffd5442b448dd553a903425222597.tar.gz
linux-ca7efd71c3dffd5442b448dd553a903425222597.tar.bz2
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>
-rw-r--r--fs/f2fs/data.c2
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;
}