]> git.baikalelectronics.ru Git - kernel.git/commit
lib/rbtree.c: fix typo in comment of __rb_insert()
authorWei Yang <weiyang@linux.vnet.ibm.com>
Fri, 8 Aug 2014 21:22:14 +0000 (14:22 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 8 Aug 2014 22:57:24 +0000 (15:57 -0700)
commit5e97ab4503cd8d358b6fa3aca37fbb62a72ea8b3
tree9271799d0496f0c04096e41d9d98fe750fcf0eb1
parent297135402bfaf42922b3db002da06d0b18028c11
lib/rbtree.c: fix typo in comment of __rb_insert()

In case 1, it passes down the BLACK color from G to p and u, and maintains
the color of n.  By doing so, it maintains the black height of the
sub-tree.

While in the comment, it marks the color of n to BLACK.  This is a typo
and not consistents with the code.

This patch fixs this typo in comment.

Signed-off-by: Wei Yang <weiyang@linux.vnet.ibm.com>
Acked-by: Michel Lespinasse <walken@google.com>
Cc: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/rbtree.c