From 45096f452e249d8ea09a62c03865e2d9791815d1 Mon Sep 17 00:00:00 2001 From: Igor Putovny Date: Wed, 19 Feb 2025 16:24:52 +0100 Subject: [PATCH] Replace superfluous else-if with else --- proto/aggregator/aggregator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } } -- 2.47.2