提交 3e126f32 编写于 作者: A Alexander Block 提交者: Chris Mason

Btrfs: remove unused tmp_path from iterate_dir_item

A leftover from older code and unused now.
Reported-by: NAlex Lyakas <alex.bolshoy.btrfs@gmail.com>
Signed-off-by: NAlexander Block <ablock84@googlemail.com>
上级 e938c8ad
......@@ -864,7 +864,6 @@ static int iterate_dir_item(struct send_ctx *sctx,
struct extent_buffer *eb;
struct btrfs_item *item;
struct btrfs_dir_item *di;
struct btrfs_path *tmp_path = NULL;
struct btrfs_key di_key;
char *buf = NULL;
char *buf2 = NULL;
......@@ -886,12 +885,6 @@ static int iterate_dir_item(struct send_ctx *sctx,
goto out;
}
tmp_path = alloc_path_for_send();
if (!tmp_path) {
ret = -ENOMEM;
goto out;
}
eb = path->nodes[0];
slot = path->slots[0];
item = btrfs_item_nr(eb, slot);
......@@ -953,7 +946,6 @@ static int iterate_dir_item(struct send_ctx *sctx,
}
out:
btrfs_free_path(tmp_path);
if (buf_virtual)
vfree(buf);
else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册