diff options
author | Alexander Block <ablock84@googlemail.com> | 2012-08-01 12:03:09 +0200 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2012-10-01 15:18:55 -0400 |
commit | 3e126f32f88095ad1bd01b3c451e52aa9094f45c (patch) | |
tree | 8ef0c531c7c15c06ec68dee7e778f42287bf48f5 | |
parent | e938c8ad543cd5ffe344371747484303ad51dfba (diff) | |
download | linux-3.10-3e126f32f88095ad1bd01b3c451e52aa9094f45c.tar.gz linux-3.10-3e126f32f88095ad1bd01b3c451e52aa9094f45c.tar.bz2 linux-3.10-3e126f32f88095ad1bd01b3c451e52aa9094f45c.zip |
Btrfs: remove unused tmp_path from iterate_dir_item
A leftover from older code and unused now.
Reported-by: Alex Lyakas <alex.bolshoy.btrfs@gmail.com>
Signed-off-by: Alexander Block <ablock84@googlemail.com>
-rw-r--r-- | fs/btrfs/send.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c index 3bc921aa5e2..b0f9df30f24 100644 --- a/fs/btrfs/send.c +++ b/fs/btrfs/send.c @@ -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 |