Apply the commit from portableproplib's git master:
commit b2975842aba26df9b9885ff56b2ff182eda06152 Author: Juan RP <xtraeme@gmail.com> Date: Thu Apr 29 18:23:15 2010 +0200 Remove some dead code found by the LLVM's clang static analyzer. --HG-- extra : convert_revision : xtraeme%40gmail.com-20100429162412-gq0on6wybpoaazgg
This commit is contained in:
@ -327,8 +327,6 @@ rb_tree_insert_rebalance(struct rb_tree *rbt, struct rb_node *self)
|
||||
KASSERT(father->rb_parent == self);
|
||||
KASSERT(self->rb_nodes[which] == father);
|
||||
KASSERT(self->rb_parent == grandpa);
|
||||
self = father;
|
||||
father = self->rb_parent;
|
||||
}
|
||||
KASSERT(RB_RED_P(self) && RB_RED_P(father));
|
||||
KASSERT(grandpa->rb_nodes[which] == father);
|
||||
@ -655,7 +653,6 @@ rb_tree_removal_rebalance(struct rb_tree *rbt, struct rb_node *parent,
|
||||
if (RB_RED_P(brother)) {
|
||||
KASSERT(RB_BLACK_P(parent));
|
||||
rb_tree_reparent_nodes(rbt, parent, other);
|
||||
brother = parent->rb_nodes[other];
|
||||
KASSERT(!RB_SENTINEL_P(brother));
|
||||
KASSERT(RB_BLACK_P(brother));
|
||||
KASSERT(RB_RED_P(parent));
|
||||
|
Reference in New Issue
Block a user