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

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 <xiaoguangrong@linux.vnet.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Xiao Guangrong 13 жил өмнө
parent
commit
f42240d729
1 өөрчлөгдсөн 0 нэмэгдсэн , 1 устгасан
  1. 0 1
      lib/prio_tree.c

+ 0 - 1
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
 		 * We can reduce root->index_bits here. However, it is complex
 		 * and does not help much to improve performance (IMO).
 		 * and does not help much to improve performance (IMO).
 		 */
 		 */
-		node->parent = node;
 		root->prio_tree_node = node;
 		root->prio_tree_node = node;
 	} else {
 	} else {
 		node->parent = old->parent;
 		node->parent = old->parent;