diff options
author | Sylvain Munaut <tnt@246tNt.com> | 2011-11-11 15:31:01 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2011-11-12 23:23:35 +0100 |
commit | 54187ba442e16df7346acc8ba68f80ce3239e6b0 (patch) | |
tree | cff5142aadc16fc51ed9f748dcd9e89bbe531f90 /libosmovty.pc.in | |
parent | a83cbe12f83d81d4b4167193fe85b1e3d745dc94 (diff) |
core/rbtree: remove redundant if()-condition in rb_erase()
See kernel commit 4b324126e0c6c3a5080ca3ec0981e8766ed6f1ee
----
Furthermore, notice that the initial checks:
if (!node->rb_left)
child = node->rb_right;
else if (!node->rb_right)
child = node->rb_left;
else
{
...
}
guarantee that old->rb_right is set in the final else branch, therefore
we can omit checking that again.
Signed-off-by: Wolfram Strepp <wstrepp@gmx.de>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
----
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'libosmovty.pc.in')
0 files changed, 0 insertions, 0 deletions