]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rbtree: add __rb_change_child() helper function
authorMichel Lespinasse <walken@google.com>
Fri, 21 Sep 2012 00:57:37 +0000 (10:57 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 21 Sep 2012 05:58:48 +0000 (15:58 +1000)
commiteec1941f9bc7871746d173f9aebb1dbe296caab9
treec8bb4bdba971be56f7d5cae559ff077949416e24
parent06a5f29a4461ad6d00716fc352f0ed35c6fad6d1
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