Skip to content

Commit

Permalink
Btrfs: remove unused code in btrfs_del_root
Browse files Browse the repository at this point in the history
'leaf' and 'ri' is not used somehow.

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
  • Loading branch information
Liu Bo authored and Josef Bacik committed Jun 14, 2013
1 parent 2da1c66 commit b7394eb
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions fs/btrfs/root-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,6 @@ int btrfs_del_root(struct btrfs_trans_handle *trans, struct btrfs_root *root,
{
struct btrfs_path *path;
int ret;
struct btrfs_root_item *ri;
struct extent_buffer *leaf;

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

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);
out:
Expand Down

0 comments on commit b7394eb

Please sign in to comment.