diff options
author | Dan Carpenter <dan.carpenter@linaro.org> | 2023-10-12 11:42:55 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2023-11-03 16:38:51 +0100 |
commit | b8212814d1e8428a082234223105e4071b844fab (patch) | |
tree | 211035c6b62f80953757eac77d843fd72b394a6b /fs/btrfs/raid-stripe-tree.c | |
parent | btrfs: use u64 for buffer sizes in the tree search ioctls (diff) | |
download | linux-b8212814d1e8428a082234223105e4071b844fab.tar.xz linux-b8212814d1e8428a082234223105e4071b844fab.zip |
btrfs: directly return 0 on no error code in btrfs_insert_raid_extent()
It's more obvious to return a literal zero instead of "return ret;".
Plus Smatch complains that ret could be uninitialized if the
ordered_extent->bioc_list list is empty and this silences that warning.
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/raid-stripe-tree.c')
-rw-r--r-- | fs/btrfs/raid-stripe-tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/raid-stripe-tree.c b/fs/btrfs/raid-stripe-tree.c index 944e8f1862aa..9589362acfbf 100644 --- a/fs/btrfs/raid-stripe-tree.c +++ b/fs/btrfs/raid-stripe-tree.c @@ -145,7 +145,7 @@ int btrfs_insert_raid_extent(struct btrfs_trans_handle *trans, btrfs_put_bioc(bioc); } - return ret; + return 0; } int btrfs_get_raid_extent_offset(struct btrfs_fs_info *fs_info, |