btrfs: remove redundant value assignment at btrfs_add_extent_mapping()
authorFilipe Manana <fdmanana@suse.com>
Mon, 4 Dec 2023 16:20:28 +0000 (16:20 +0000)
committerDavid Sterba <dsterba@suse.com>
Fri, 15 Dec 2023 21:59:01 +0000 (22:59 +0100)
commitd224d2ef959a768fc88242224d8527e5f88789b6
treec85b3b73cb64b72a084f7f16187a64313438b0fe
parentdb9d94464a7acb149d014de1b0aa982b8c3856a6
btrfs: remove redundant value assignment at btrfs_add_extent_mapping()

At btrfs_add_extent_mapping(), in case add_extent_mapping() returned
-EEXIST, it's pointless to assign 0 to 'ret' since we will assign a value
to it shortly after, without 'ret' being used before that. So remove that
pointless assignment.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_map.c