projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2da1c66
)
Btrfs: remove unused code in btrfs_del_root
author
Liu Bo
<bo.li.liu@oracle.com>
Sun, 26 May 2013 13:50:30 +0000
(13:50 +0000)
committer
Josef Bacik
<jbacik@fusionio.com>
Fri, 14 Jun 2013 15:30:02 +0000
(11:30 -0400)
'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>
fs/btrfs/root-tree.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/root-tree.c
b/fs/btrfs/root-tree.c
index 79e683273de5c94ae350859a0757973e95156dc2..723a5312763f7b894e6f0ca87b0c24647946ef0d 100644
(file)
--- 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,
{
struct btrfs_path *path;
int ret;
- struct btrfs_root_item *ri;
- struct extent_buffer *leaf;
path = btrfs_alloc_path();
if (!path)
@@
-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: