From f42240d729b97a01e863b8c24177ec4e54885357 Mon Sep 17 00:00:00 2001 From: Xiao Guangrong Date: Fri, 23 Mar 2012 15:02:14 -0700 Subject: prio_tree: remove unnecessary code in prio_tree_replace Remove the code since 'node' has already been initialized in the begin of the function Signed-off-by: Xiao Guangrong Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- lib/prio_tree.c | 1 - 1 file changed, 1 deletion(-) (limited to 'lib/prio_tree.c') diff --git a/lib/prio_tree.c b/lib/prio_tree.c index ccfd850b0de..423eba80478 100644 --- a/lib/prio_tree.c +++ b/lib/prio_tree.c @@ -151,7 +151,6 @@ struct prio_tree_node *prio_tree_replace(struct prio_tree_root *root, * We can reduce root->index_bits here. However, it is complex * and does not help much to improve performance (IMO). */ - node->parent = node; root->prio_tree_node = node; } else { node->parent = old->parent; -- cgit v1.2.3-70-g09d2