public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Btrfs: remove redundant codes for split_state()
@ 2009-02-09 12:41 Qinghuang Feng
  0 siblings, 0 replies; only message in thread
From: Qinghuang Feng @ 2009-02-09 12:41 UTC (permalink / raw)
  To: chris.mason; +Cc: linux-kernel, linux-btrfs

These two lines are needless, remove them.

Signed-off-by: Qinghuang Feng <qhfeng.kernel@gmail.com>
---
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index 37d43b5..ebe6b29 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -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;
 	}


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-02-09 12:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-09 12:41 [PATCH] Btrfs: remove redundant codes for split_state() Qinghuang Feng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox