diff options
Diffstat (limited to 'fs/btrfs/root-tree.c')
-rw-r--r-- | fs/btrfs/root-tree.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/btrfs/root-tree.c b/fs/btrfs/root-tree.c index 7a2d63c1ee80..8e1b9046d5ec 100644 --- a/fs/btrfs/root-tree.c +++ b/fs/btrfs/root-tree.c | |||
@@ -36,7 +36,6 @@ int btrfs_find_last_root(struct btrfs_root *root, u64 objectid, | |||
36 | 36 | ||
37 | path = btrfs_alloc_path(); | 37 | path = btrfs_alloc_path(); |
38 | BUG_ON(!path); | 38 | BUG_ON(!path); |
39 | btrfs_init_path(path); | ||
40 | ret = btrfs_search_slot(NULL, root, &search_key, path, 0, 0); | 39 | ret = btrfs_search_slot(NULL, root, &search_key, path, 0, 0); |
41 | if (ret < 0) | 40 | if (ret < 0) |
42 | goto out; | 41 | goto out; |
@@ -70,7 +69,6 @@ int btrfs_update_root(struct btrfs_trans_handle *trans, struct btrfs_root | |||
70 | 69 | ||
71 | path = btrfs_alloc_path(); | 70 | path = btrfs_alloc_path(); |
72 | BUG_ON(!path); | 71 | BUG_ON(!path); |
73 | btrfs_init_path(path); | ||
74 | ret = btrfs_search_slot(trans, root, key, path, 0, 1); | 72 | ret = btrfs_search_slot(trans, root, key, path, 0, 1); |
75 | if (ret < 0) | 73 | if (ret < 0) |
76 | goto out; | 74 | goto out; |
@@ -106,7 +104,6 @@ int btrfs_del_root(struct btrfs_trans_handle *trans, struct btrfs_root *root, | |||
106 | 104 | ||
107 | path = btrfs_alloc_path(); | 105 | path = btrfs_alloc_path(); |
108 | BUG_ON(!path); | 106 | BUG_ON(!path); |
109 | btrfs_init_path(path); | ||
110 | ret = btrfs_search_slot(trans, root, key, path, -1, 1); | 107 | ret = btrfs_search_slot(trans, root, key, path, -1, 1); |
111 | if (ret < 0) | 108 | if (ret < 0) |
112 | goto out; | 109 | goto out; |