f2fs: remove the unnecessary check in f2fs_xattr_fiemap
PATCH 1/1 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 <[email protected]>
--- fs/f2fs/data.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/f2fs/data.c +1 -1
@@ -1818,7 +1818,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; }
Signature · 8 lines
2.25.1 _______________________________________________ Linux-f2fs-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
Quoted 4 lines · Zhang Qilong
Whehter or not error occurs, checking "err == 1" is unnecessary in
f2fs_xattr_fiemap(), and just remove it here.Signed-off-by Zhang Qilong <[email protected]>
Reviewed-by Chao Yu <[email protected]>
Thanks,
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel