projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52b5108
)
[RBTREE] Update key.c to use rb_parent() accessor macro.
author
David Woodhouse
<dwmw2@infradead.org>
Fri, 21 Apr 2006 12:16:49 +0000
(13:16 +0100)
committer
David Woodhouse
<dwmw2@infradead.org>
Fri, 21 Apr 2006 12:16:49 +0000
(13:16 +0100)
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
security/keys/key.c
patch
|
blob
|
blame
|
history
diff --git
a/security/keys/key.c
b/security/keys/key.c
index b6061fa29da7fc7eb5278530ebb26769dc4ebcde..3fdc49c6a02cde37607fbf792bfc2068fd773860 100644
(file)
--- a/
security/keys/key.c
+++ b/
security/keys/key.c
@@
-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)