]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Remove unnecessary else branches
authorIgor Putovny <igor.putovny@nic.cz>
Tue, 18 Feb 2025 16:11:59 +0000 (17:11 +0100)
committerIgor Putovny <igor.putovny@nic.cz>
Tue, 18 Feb 2025 16:11:59 +0000 (17:11 +0100)
proto/aggregator/aggregator.c

index d9e545a51a457eff0ec0b610c74f1437224e9db8..af6b1dbdcf3772e914d0d7e0b473a2bb003bfa43 100644 (file)
@@ -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");
     }
   }