]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rbtree: add __rb_change_child() helper function
authorMichel Lespinasse <walken@google.com>
Wed, 26 Sep 2012 01:33:34 +0000 (11:33 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 27 Sep 2012 07:26:18 +0000 (17:26 +1000)
commit499814c13c7f2d2df7d6c30df732bbbf4b048fec
treeb9aeca867b66e46aa67c3ba574898caa7d51089b
parent6144c5d1b7e5bb9d1776eeb4fd8316c43281a8c4
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