From 2a08b562c75205223976b33a81232eba5f5087d6 Mon Sep 17 00:00:00 2001 From: Igor Putovny Date: Tue, 18 Feb 2025 17:11:59 +0100 Subject: [PATCH] Remove unnecessary else branches --- proto/aggregator/aggregator.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/proto/aggregator/aggregator.c b/proto/aggregator/aggregator.c index d9e545a51..af6b1dbdc 100644 --- a/proto/aggregator/aggregator.c +++ b/proto/aggregator/aggregator.c @@ -709,8 +709,6 @@ second_pass(struct trie_node *node) right = &imaginary_node; else if (!left && right) left = &imaginary_node; - else - bug("Node does not have only one child"); } assert(left != NULL && right != NULL); @@ -846,8 +844,6 @@ third_pass_helper(struct aggregator_proto *p, struct trie_node *node, ip_addr *p node->child[1] = new; else if (!left && right) node->child[0] = new; - else - bug("Node does not have only one child"); } } -- 2.47.2