Commit fed306f2 authored by David Woodhouse's avatar David Woodhouse

[RBTREE] Update key.c to use rb_parent() accessor macro.

Signed-off-by: default avatarDavid Woodhouse <dwmw2@infradead.org>
parent 52b5108c
......@@ -211,12 +211,12 @@ static inline void key_alloc_serial(struct key *key)
key->serial = 2;
key_serial_next = key->serial + 1;
if (!parent->rb_parent)
if (!rb_parent(parent))
p = &key_serial_tree.rb_node;
else if (parent->rb_parent->rb_left == parent)
p = &parent->rb_parent->rb_left;
else if (rb_parent(parent)->rb_left == parent)
p = &(rb_parent(parent)->rb_left);
else
p = &parent->rb_parent->rb_right;
p = &(rb_parent(parent)->rb_right);
parent = rb_next(parent);
if (!parent)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment