From: Michel Lespinasse Date: Mon, 8 Oct 2012 23:31:10 +0000 (-0700) Subject: rbtree: place easiest case first in rb_erase() X-Git-Tag: v3.7-rc1~74^2~88 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60670b8034d6e2ba860af79c9379b7788d09db73;p=pandora-kernel.git rbtree: place easiest case first in rb_erase() In rb_erase, move the easy case (node to erase has no more than 1 child) first. I feel the code reads easier that way. Signed-off-by: Michel Lespinasse Reviewed-by: Rik van Riel Cc: Peter Zijlstra Cc: Andrea Arcangeli Cc: David Woodhouse Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed