Эх сурвалжийг харах

Btrfs: remove the useless assignment to *entry in function tree_insert of file extent_io.c

In tree_insert, var *entry is used in the loop only, and is useless
out of the loop. Remove the useless assignment after the loop.

Signed-off-by: Wang Sheng-Hui <shhuiw@gmail.com>
Wang Sheng-Hui 13 жил өмнө
parent
commit
fd5e62a37c

+ 0 - 1
fs/btrfs/extent_io.c

@@ -186,7 +186,6 @@ static struct rb_node *tree_insert(struct rb_root *root, u64 offset,
 			return parent;
 			return parent;
 	}
 	}
 
 
-	entry = rb_entry(node, struct tree_entry, rb_node);
 	rb_link_node(node, parent, p);
 	rb_link_node(node, parent, p);
 	rb_insert_color(node, root);
 	rb_insert_color(node, root);
 	return NULL;
 	return NULL;