btrfs: remove pointless return value update in btrfs_del_items()

The call to btrfs_del_leaf() can only return an error (negative value) or
zero (success). If we didn't get an error then 'ret' is zero, so it's
pointless to set it to zero again.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
Filipe Manana
2025-11-13 12:59:19 +00:00
committed by David Sterba
parent e7dd1182fc
commit 86d3dc812f

View File

@@ -4565,7 +4565,6 @@ int btrfs_del_items(struct btrfs_trans_handle *trans, struct btrfs_root *root,
free_extent_buffer(leaf);
if (ret < 0)
return ret;
ret = 0;
} else {
/* if we're still in the path, make sure
* we're dirty. Otherwise, one of the