]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rbtree: add __rb_change_child() helper function
authorMichel Lespinasse <walken@google.com>
Fri, 7 Sep 2012 00:23:50 +0000 (10:23 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 7 Sep 2012 05:36:21 +0000 (15:36 +1000)
commitfa29449adfb84d51eec47b0b160a153fc81793b0
tree9737ee36812aacbb1482a83c099c3966c8aeb6fc
parent1b65e8c10269fcec7bca17eb077336cf801d505c
rbtree: add __rb_change_child() helper function

Add __rb_change_child() as an inline helper function to replace code that
would otherwise be duplicated 4 times in the source.

No changes to binary size or speed.

Signed-off-by: Michel Lespinasse <walken@google.com>
Reviewed-by: Rik van Riel <riel@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/rbtree.c