prio_tree: remove unnecessary code in prio_tree_replace
authorXiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Fri, 23 Mar 2012 22:02:14 +0000 (15:02 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 23 Mar 2012 23:58:36 +0000 (16:58 -0700)
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>

lib/prio_tree.c

index ccfd850..423eba8 100644 (file)
@@ -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;