aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Block <ablock84@googlemail.com>2012-08-01 06:03:09 -0400
committerChris Mason <chris.mason@fusionio.com>2012-10-01 15:18:55 -0400
commit3e126f32f88095ad1bd01b3c451e52aa9094f45c (patch)
tree8ef0c531c7c15c06ec68dee7e778f42287bf48f5
parente938c8ad543cd5ffe344371747484303ad51dfba (diff)
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.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c
index 3bc921aa5e21..b0f9df30f24d 100644
--- a/fs/btrfs/send.c
+++ b/fs/btrfs/send.c
@@ -864,7 +864,6 @@ static int iterate_dir_item(struct send_ctx *sctx,
864 struct extent_buffer *eb; 864 struct extent_buffer *eb;
865 struct btrfs_item *item; 865 struct btrfs_item *item;
866 struct btrfs_dir_item *di; 866 struct btrfs_dir_item *di;
867 struct btrfs_path *tmp_path = NULL;
868 struct btrfs_key di_key; 867 struct btrfs_key di_key;
869 char *buf = NULL; 868 char *buf = NULL;
870 char *buf2 = NULL; 869 char *buf2 = NULL;
@@ -886,12 +885,6 @@ static int iterate_dir_item(struct send_ctx *sctx,
886 goto out; 885 goto out;
887 } 886 }
888 887
889 tmp_path = alloc_path_for_send();
890 if (!tmp_path) {
891 ret = -ENOMEM;
892 goto out;
893 }
894
895 eb = path->nodes[0]; 888 eb = path->nodes[0];
896 slot = path->slots[0]; 889 slot = path->slots[0];
897 item = btrfs_item_nr(eb, slot); 890 item = btrfs_item_nr(eb, slot);
@@ -953,7 +946,6 @@ static int iterate_dir_item(struct send_ctx *sctx,
953 } 946 }
954 947
955out: 948out:
956 btrfs_free_path(tmp_path);
957 if (buf_virtual) 949 if (buf_virtual)
958 vfree(buf); 950 vfree(buf);
959 else 951 else