]> git.itanic.dy.fi Git - linux-stable/commit
btrfs: directly return 0 on no error code in btrfs_insert_raid_extent()
authorDan Carpenter <dan.carpenter@linaro.org>
Thu, 12 Oct 2023 09:42:55 +0000 (12:42 +0300)
committerDavid Sterba <dsterba@suse.com>
Fri, 3 Nov 2023 15:38:51 +0000 (16:38 +0100)
commitb8212814d1e8428a082234223105e4071b844fab
tree211035c6b62f80953757eac77d843fd72b394a6b
parentdec96fc2dcb59723e041416b8dc53e011b4bfc2e
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>
fs/btrfs/raid-stripe-tree.c