Skip to contentSkip to conversation

Btrfs: remove redundant codes for split_state()

PATCH New Qinghuang Feng 1 participant 1 message Feb 9, 2009 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Btrfs: remove redundant codes for split_state()

These two lines are needless, remove them.

---

fs/btrfs/extent_io.c +0 -2
index 37d43b5..ebe6b29 100644
@@ -415,8 +415,6 @@ static int split_state(struct extent_io_tree *tree, struct extent_state *orig,
 
 	node = tree_insert(&tree->state, prealloc->end, &prealloc->rb_node);
 	if (node) {
-		struct extent_state *found;
-		found = rb_entry(node, struct extent_state, rb_node);
 		free_extent_state(prealloc);
 		return -EEXIST;
 	}