btrfs cleanup: remove more dead code
Subsystems (2)
PATCH 2/3 btrfs cleanup: remove more dead code
rb_node cannot be an ERR_PTR() here so I removed the misleading check. Also I removed some more dead code at the bottom.
It looks like the code from lookup_extent_mapping() may have been copy and pasted into search_extent_mapping()?
Signed-off-by Dan Carpenter <[email protected]>
---
This doesn't change anything. Could you put it into linux-next?
fs/btrfs/extent_map.c +0 -9
@@ -380,16 +380,7 @@ struct extent_map *search_extent_mapping(struct extent_map_tree *tree, em =NULL ; goto out; } -if (IS_ERR (rb_node)) { - em =ERR_PTR (PTR_ERR (rb_node)); - goto out; - } em = rb_entry(rb_node, struct extent_map, rb_node); - goto found; - - em =NULL ; - goto out; - found:atomic_inc (&em->refs); out: