]> git.baikalelectronics.ru Git - kernel.git/commitdiff
lib/rbtree: fix coding style of assignments
authorchenqiwu <chenqiwu@xiaomi.com>
Tue, 7 Apr 2020 03:10:31 +0000 (20:10 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 7 Apr 2020 17:43:43 +0000 (10:43 -0700)
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 <chenqiwu@xiaomi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Michel Lespinasse <walken@google.com>
Link: http://lkml.kernel.org/r/1582621140-25850-1-git-send-email-qiwuchen55@gmail.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/rbtree.c
tools/lib/rbtree.c

index abc86c6a31777d4ed88c0ad704b2aee0588d052f..8545872e61db9880bf2112ed7561f0cd5b7d8e54 100644 (file)
@@ -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;
        }
 
@@ -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;
        }
 
index 2548ff8c4d9c1c75e1ad59baa346d9f5cf205b50..06ac7bd2144b77c5716cbebddd52cf22d98780e6 100644 (file)
@@ -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;
        }
 
@@ -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;
        }