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:
parent
4d09be8cba
commit
af6949cc43
@ -485,7 +485,6 @@ _prop_data_internalize_decode(struct _prop_object_internalize_context *ctx,
|
|||||||
/* Make sure there is another trailing = */
|
/* Make sure there is another trailing = */
|
||||||
if (ch != _prop_data_pad64)
|
if (ch != _prop_data_pad64)
|
||||||
return (false);
|
return (false);
|
||||||
ch = (unsigned char) *src;
|
|
||||||
/* FALLTHROUGH */
|
/* FALLTHROUGH */
|
||||||
|
|
||||||
case 3: /* Valid, two bytes of info */
|
case 3: /* Valid, two bytes of info */
|
||||||
|
@ -327,8 +327,6 @@ rb_tree_insert_rebalance(struct rb_tree *rbt, struct rb_node *self)
|
|||||||
KASSERT(father->rb_parent == self);
|
KASSERT(father->rb_parent == self);
|
||||||
KASSERT(self->rb_nodes[which] == father);
|
KASSERT(self->rb_nodes[which] == father);
|
||||||
KASSERT(self->rb_parent == grandpa);
|
KASSERT(self->rb_parent == grandpa);
|
||||||
self = father;
|
|
||||||
father = self->rb_parent;
|
|
||||||
}
|
}
|
||||||
KASSERT(RB_RED_P(self) && RB_RED_P(father));
|
KASSERT(RB_RED_P(self) && RB_RED_P(father));
|
||||||
KASSERT(grandpa->rb_nodes[which] == 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)) {
|
if (RB_RED_P(brother)) {
|
||||||
KASSERT(RB_BLACK_P(parent));
|
KASSERT(RB_BLACK_P(parent));
|
||||||
rb_tree_reparent_nodes(rbt, parent, other);
|
rb_tree_reparent_nodes(rbt, parent, other);
|
||||||
brother = parent->rb_nodes[other];
|
|
||||||
KASSERT(!RB_SENTINEL_P(brother));
|
KASSERT(!RB_SENTINEL_P(brother));
|
||||||
KASSERT(RB_BLACK_P(brother));
|
KASSERT(RB_BLACK_P(brother));
|
||||||
KASSERT(RB_RED_P(parent));
|
KASSERT(RB_RED_P(parent));
|
||||||
|
Loading…
Reference in New Issue
Block a user