summaryrefslogtreecommitdiff
path: root/volumes.c
diff options
context:
space:
mode:
Diffstat (limited to 'volumes.c')
-rw-r--r--volumes.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/volumes.c b/volumes.c
index bd012704..e25b4c08 100644
--- a/volumes.c
+++ b/volumes.c
@@ -1267,13 +1267,11 @@ int __btrfs_map_block(struct btrfs_mapping_tree *map_tree, int rw,
again:
ce = search_cache_extent(&map_tree->cache_tree, logical);
if (!ce) {
- if (multi)
- kfree(multi);
+ kfree(multi);
return -ENOENT;
}
if (ce->start > logical || ce->start + ce->size < logical) {
- if (multi)
- kfree(multi);
+ kfree(multi);
return -ENOENT;
}