]> 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>
Mon, 10 Sep 2012 06:18:08 +0000 (16:18 +1000)
commit9cf1943dcf817e1ed339e468cc7d40f969489f05
tree18bc5811fb4fb2f06674d665db6888fbe26da583
parent3ba663ebb53b65155db3f31fc97dd1184c3cb5b9
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