From: Igor Putovny Date: Wed, 19 Feb 2025 15:24:52 +0000 (+0100) Subject: Replace superfluous else-if with else X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45096f452e249d8ea09a62c03865e2d9791815d1;p=thirdparty%2Fbird.git Replace superfluous else-if with else --- diff --git a/proto/aggregator/aggregator.c b/proto/aggregator/aggregator.c index 49dcfc533..5a8965b41 100644 --- a/proto/aggregator/aggregator.c +++ b/proto/aggregator/aggregator.c @@ -714,7 +714,7 @@ second_pass(struct trie_node *node) { if (left && !right) right = &imaginary_node; - else if (!left && right) + else left = &imaginary_node; } @@ -852,7 +852,7 @@ third_pass_helper(struct aggregator_proto *p, struct trie_node *node, ip_addr *p /* Connect new node to the trie */ if (left && !right) node->child[1] = new; - else if (!left && right) + else node->child[0] = new; } }