From: Zhang Qilong Date: Fri, 23 Sep 2022 07:17:55 +0000 (+0800) Subject: f2fs: remove the unnecessary check in f2fs_xattr_fiemap X-Git-Tag: microblaze-v6.2~74^2~5 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=ca7efd71c3dffd5442b448dd553a903425222597;p=linux-2.6-microblaze.git 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 Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim --- 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; }