summaryrefslogtreecommitdiff
path: root/restore.c
diff options
context:
space:
mode:
authorZach Brown <zab@redhat.com>2013-01-21 16:25:51 -0800
committerZach Brown <zab@redhat.com>2013-02-05 16:09:39 -0800
commit5fc2413e64b36202f7a020bc69d4a30186145dd0 (patch)
tree5149ac179d62ca95e4fc06c40c61724b5cea2302 /restore.c
parentba4791fde3495c04648038c7376f21bd7b3298a6 (diff)
downloadbtrfs-progs-5fc2413e64b36202f7a020bc69d4a30186145dd0.tar.gz
btrfs-progs: remove dead code that checks null eb
'next' can never be non-null in the body of these loops. It's initialized to NULL and the loop is terminated the moment it is set. Signed-off-by: Zach Brown <zab@redhat.com>
Diffstat (limited to 'restore.c')
-rw-r--r--restore.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/restore.c b/restore.c
index ecabc3e..4853203 100644
--- a/restore.c
+++ b/restore.c
@@ -102,9 +102,6 @@ int next_leaf(struct btrfs_root *root, struct btrfs_path *path)
continue;
}
- if (next)
- free_extent_buffer(next);
-
if (path->reada)
reada_for_search(root, path, level, slot, 0);