mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-05-11 12:18:08 +00:00
CLEANUP: ebmbtree: Replace always-taken elseif by else
`diff` is guaranteed to be less than 0, because the `if` handles the `>= 0` case. Found using GitHub's CodeQL scan in HAProxy's codebase.
This commit is contained in:
parent
d5fc8fcb86
commit
a8bfb4d135
@ -358,7 +358,7 @@ __ebmb_insert(struct eb_root *root, struct ebmb_node *new, unsigned int len)
|
||||
new->node.leaf_p = new_rght;
|
||||
*up_ptr = new_left;
|
||||
}
|
||||
else if (diff < 0) {
|
||||
else {
|
||||
new->node.branches.b[EB_LEFT] = new_leaf;
|
||||
new->node.branches.b[EB_RGHT] = troot;
|
||||
new->node.leaf_p = new_left;
|
||||
|
Loading…
Reference in New Issue
Block a user