ソースを参照

Btrfs: remove unused code in split_state()

These two lines are not used, remove them.

Signed-off-by: Qinghuang Feng <qhfeng.kernel@gmail.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Qinghuang Feng 16 年 前
コミット
a48ddf08ba
1 ファイル変更0 行追加2 行削除
  1. 0 2
      fs/btrfs/extent_io.c

+ 0 - 2
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);
 	node = tree_insert(&tree->state, prealloc->end, &prealloc->rb_node);
 	if (node) {
 	if (node) {
-		struct extent_state *found;
-		found = rb_entry(node, struct extent_state, rb_node);
 		free_extent_state(prealloc);
 		free_extent_state(prealloc);
 		return -EEXIST;
 		return -EEXIST;
 	}
 	}