Skip to content

Commit b7394eb

Browse files
Liu BoJosef Bacik
authored andcommitted
Btrfs: remove unused code in btrfs_del_root
'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>
1 parent 2da1c66 commit b7394eb

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

‎fs/btrfs/root-tree.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,6 @@ int btrfs_del_root(struct btrfs_trans_handle *trans, struct btrfs_root *root,
304304
{
305305
struct btrfs_path *path;
306306
int ret;
307-
struct btrfs_root_item *ri;
308-
struct extent_buffer *leaf;
309307

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

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

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

0 commit comments

Comments
 (0)