]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Replace superfluous else-if with else
authorIgor Putovny <igor.putovny@nic.cz>
Wed, 19 Feb 2025 15:24:52 +0000 (16:24 +0100)
committerIgor Putovny <igor.putovny@nic.cz>
Wed, 19 Feb 2025 15:24:52 +0000 (16:24 +0100)
proto/aggregator/aggregator.c

index 49dcfc533e05178399f1f54b3b8fbb4a3328aabf..5a8965b410c5d35f03e4011f30b6293127a70fcc 100644 (file)
@@ -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;
     }
   }