Skip to content

Commit

Permalink
lib/rbtree: fix coding style of assignments
Browse files Browse the repository at this point in the history
Leave blank space between the right-hand and left-hand side of the
assignment to meet the kernel coding style better.

Signed-off-by: chenqiwu <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Reviewed-by: Michel Lespinasse <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
qiwuchen authored and torvalds committed Apr 7, 2020
1 parent caa7f77 commit 8d994ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/rbtree.c
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ struct rb_node *rb_next(const struct rb_node *node)
if (node->rb_right) {
node = node->rb_right;
while (node->rb_left)
node=node->rb_left;
node = node->rb_left;
return (struct rb_node *)node;
}

Expand Down Expand Up @@ -535,7 +535,7 @@ struct rb_node *rb_prev(const struct rb_node *node)
if (node->rb_left) {
node = node->rb_left;
while (node->rb_right)
node=node->rb_right;
node = node->rb_right;
return (struct rb_node *)node;
}

Expand Down
4 changes: 2 additions & 2 deletions tools/lib/rbtree.c
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ struct rb_node *rb_next(const struct rb_node *node)
if (node->rb_right) {
node = node->rb_right;
while (node->rb_left)
node=node->rb_left;
node = node->rb_left;
return (struct rb_node *)node;
}

Expand Down Expand Up @@ -528,7 +528,7 @@ struct rb_node *rb_prev(const struct rb_node *node)
if (node->rb_left) {
node = node->rb_left;
while (node->rb_right)
node=node->rb_right;
node = node->rb_right;
return (struct rb_node *)node;
}

Expand Down

0 comments on commit 8d994ca

Please sign in to comment.