Skip to contentSkip to conversation

btrfs cleanup: remove dead code

PATCH New Dan Carpenter 1 participant 1 message Mar 20, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/3 btrfs cleanup: remove dead code

rb_node is never an ERR_PTR() here. This code confuses smatch.

---
This doesn't change anything. It's just a cleanup. Could you load it up for linux-next?

fs/btrfs/extent_map.c +0 -4
index 28d87ba..94668b1 100644
@@ -335,10 +335,6 @@ struct extent_map *lookup_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);
 	if (end > em->start && start < extent_map_end(em))
 		goto found;