diff options
author | zhang songyi <zhang.songyi@zte.com.cn> | 2022-09-02 17:40:29 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2022-09-26 12:28:00 +0200 |
commit | bd64f6221a98fb1857485c63fd3d8da8d47406c6 (patch) | |
tree | e539d09e7701f3e5fcbc2becd6edf9a0dcfcd885 /fs/btrfs/props.c | |
parent | btrfs: separate BLOCK_GROUP_TREE compat RO flag from EXTENT_TREE_V2 (diff) | |
download | linux-bd64f6221a98fb1857485c63fd3d8da8d47406c6.tar.xz linux-bd64f6221a98fb1857485c63fd3d8da8d47406c6.zip |
btrfs: remove the unnecessary result variables
Return the sysfs_emit() and iterate_object_props() directly instead of
using unnecessary variables.
Reported-by: Zeal Robot <zealci@zte.com.cn>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: zhang songyi <zhang.songyi@zte.com.cn>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/props.c')
-rw-r--r-- | fs/btrfs/props.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/btrfs/props.c b/fs/btrfs/props.c index a2ec8ecae8de..055a631276ce 100644 --- a/fs/btrfs/props.c +++ b/fs/btrfs/props.c @@ -270,11 +270,8 @@ int btrfs_load_inode_props(struct inode *inode, struct btrfs_path *path) { struct btrfs_root *root = BTRFS_I(inode)->root; u64 ino = btrfs_ino(BTRFS_I(inode)); - int ret; - - ret = iterate_object_props(root, path, ino, inode_prop_iterator, inode); - return ret; + return iterate_object_props(root, path, ino, inode_prop_iterator, inode); } static int prop_compression_validate(const struct btrfs_inode *inode, |