mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
[RBTREE] Update key.c to use rb_parent() accessor macro.
Signed-off-by: David Woodhouse <[email protected]>
This commit is contained in:
parent
52b5108ca7
commit
fed306f2ba
1 changed files with 4 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue