]> 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>
Wed, 12 Sep 2012 07:08:33 +0000 (17:08 +1000)
commit83607d012cbedf95c7da1c8a5831540799f3f488
treeae5b79237979fb56cadf8896cdaa4038b08c6ae6
parent7052d0b68aa1d5273e1fe8d40e0bcab4d3ac664b
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