Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b7394eb9 authored by Liu Bo's avatar Liu Bo Committed by Josef Bacik
Browse files

Btrfs: remove unused code in btrfs_del_root



'leaf' and 'ri' is not used somehow.

Signed-off-by: default avatarLiu Bo <bo.li.liu@oracle.com>
Signed-off-by: default avatarJosef Bacik <jbacik@fusionio.com>
parent 2da1c669
Loading
Loading
Loading
Loading
+0 −4
Original line number Original line Diff line number Diff line
@@ -304,8 +304,6 @@ int btrfs_del_root(struct btrfs_trans_handle *trans, struct btrfs_root *root,
{
{
	struct btrfs_path *path;
	struct btrfs_path *path;
	int ret;
	int ret;
	struct btrfs_root_item *ri;
	struct extent_buffer *leaf;


	path = btrfs_alloc_path();
	path = btrfs_alloc_path();
	if (!path)
	if (!path)
@@ -315,8 +313,6 @@ int btrfs_del_root(struct btrfs_trans_handle *trans, struct btrfs_root *root,
		goto out;
		goto out;


	BUG_ON(ret != 0);
	BUG_ON(ret != 0);
	leaf = path->nodes[0];
	ri = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_root_item);


	ret = btrfs_del_item(trans, root, path);
	ret = btrfs_del_item(trans, root, path);
out:
out: