Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
fed306f2
Commit
fed306f2
authored
Apr 21, 2006
by
David Woodhouse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[RBTREE] Update key.c to use rb_parent() accessor macro.
Signed-off-by:
David Woodhouse
<
dwmw2@infradead.org
>
parent
52b5108c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
security/keys/key.c
security/keys/key.c
+4
-4
No files found.
security/keys/key.c
View file @
fed306f2
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment