Skip to content

Commit 3d07e35

Browse files
fdmananakdave
authored andcommitted
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. Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
1 parent e05be88 commit 3d07e35

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

fs/btrfs/ctree.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4589,7 +4589,6 @@ int btrfs_del_items(struct btrfs_trans_handle *trans, struct btrfs_root *root,
45894589
free_extent_buffer(leaf);
45904590
if (ret < 0)
45914591
return ret;
4592-
ret = 0;
45934592
} else {
45944593
/* if we're still in the path, make sure
45954594
* we're dirty. Otherwise, one of the

0 commit comments

Comments
 (0)