diff options
author | Liu Bo <bo.li.liu@oracle.com> | 2013-05-26 09:50:30 -0400 |
---|---|---|
committer | Josef Bacik <jbacik@fusionio.com> | 2013-06-14 11:30:02 -0400 |
commit | b7394eb91c703a07284501754dc735b3cd0154b7 (patch) | |
tree | 5e0306bd266d09125d0884a2e8d660e00ad13078 /fs/btrfs | |
parent | 2da1c669f0f236f844bb884a7d373296184636af (diff) |
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>
Diffstat (limited to 'fs/btrfs')
-rw-r--r-- | fs/btrfs/root-tree.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/btrfs/root-tree.c b/fs/btrfs/root-tree.c index 79e683273de5..723a5312763f 100644 --- a/fs/btrfs/root-tree.c +++ b/fs/btrfs/root-tree.c | |||
@@ -304,8 +304,6 @@ int btrfs_del_root(struct btrfs_trans_handle *trans, struct btrfs_root *root, | |||
304 | { | 304 | { |
305 | struct btrfs_path *path; | 305 | struct btrfs_path *path; |
306 | int ret; | 306 | int ret; |
307 | struct btrfs_root_item *ri; | ||
308 | struct extent_buffer *leaf; | ||
309 | 307 | ||
310 | path = btrfs_alloc_path(); | 308 | path = btrfs_alloc_path(); |
311 | if (!path) | 309 | if (!path) |
@@ -315,8 +313,6 @@ int btrfs_del_root(struct btrfs_trans_handle *trans, struct btrfs_root *root, | |||
315 | goto out; | 313 | goto out; |
316 | 314 | ||
317 | BUG_ON(ret != 0); | 315 | BUG_ON(ret != 0); |
318 | leaf = path->nodes[0]; | ||
319 | ri = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_root_item); | ||
320 | 316 | ||
321 | ret = btrfs_del_item(trans, root, path); | 317 | ret = btrfs_del_item(trans, root, path); |
322 | out: | 318 | out: |