]> git.puffer.fish Git - matthieu/frr.git/commitdiff
lib: remove invalid assert
authorQuentin Young <qlyoung@cumulusnetworks.com>
Fri, 1 Dec 2017 19:05:14 +0000 (14:05 -0500)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Fri, 1 Dec 2017 19:05:14 +0000 (14:05 -0500)
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
lib/command.c

index 705c47d38c83922f3b92541764a5b3e6a613103c..686795c10a21ec247bc0ffebc8449371151001f2 100644 (file)
@@ -511,10 +511,6 @@ static void cmd_merge_nodes(struct graph *oldgraph, struct graph *newgraph,
                }
                /* nothing found => add new to old */
                if (i == vector_active(old->to) && direction > 0) {
-                       assert(vector_count(cnew->from)
-                                              == cmd_nodes_link(cnew, cnew)
-                                      ? 2
-                                      : 1);
                        graph_remove_edge(new, cnew);
 
                        cmd_reparent_tree(newgraph, oldgraph, cnew);