Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

lib/rbtree: fix coding style of assignments

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>

authored by

chenqiwu and committed by
Linus Torvalds
8d994cad caa7f776

+4 -4
+2 -2
lib/rbtree.c
··· 503 503 if (node->rb_right) { 504 504 node = node->rb_right; 505 505 while (node->rb_left) 506 - node=node->rb_left; 506 + node = node->rb_left; 507 507 return (struct rb_node *)node; 508 508 } 509 509 ··· 535 535 if (node->rb_left) { 536 536 node = node->rb_left; 537 537 while (node->rb_right) 538 - node=node->rb_right; 538 + node = node->rb_right; 539 539 return (struct rb_node *)node; 540 540 } 541 541
+2 -2
tools/lib/rbtree.c
··· 497 497 if (node->rb_right) { 498 498 node = node->rb_right; 499 499 while (node->rb_left) 500 - node=node->rb_left; 500 + node = node->rb_left; 501 501 return (struct rb_node *)node; 502 502 } 503 503 ··· 528 528 if (node->rb_left) { 529 529 node = node->rb_left; 530 530 while (node->rb_right) 531 - node=node->rb_right; 531 + node = node->rb_right; 532 532 return (struct rb_node *)node; 533 533 } 534 534