aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_in.c
diff options
context:
space:
mode:
authorWolfram Strepp <[email protected]>2009-06-16 15:34:13 -0700
committerLinus Torvalds <[email protected]>2009-06-16 19:47:56 -0700
commit4b324126e0c6c3a5080ca3ec0981e8766ed6f1ee (patch)
treef49edd4acf4963eb3377fd3a700982081970ba14 /net/lapb/lapb_in.c
parent4c60117811171d867d4f27f17ea07d7419d45dae (diff)
rb_tree: remove redundant if()-condition in rb_erase()
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 <[email protected]> Signed-off-by: Peter Zijlstra <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions