graph: remove useless duplicate name check
[dpdk.git] / lib / graph / node.c
index 86ec431..ae6eadb 100644 (file)
@@ -8,7 +8,6 @@
 
 #include <rte_common.h>
 #include <rte_debug.h>
-#include <rte_eal.h>
 #include <rte_errno.h>
 #include <rte_string_fns.h>
 
@@ -151,10 +150,6 @@ node_clone(struct node *node, const char *name)
                goto fail;
        }
 
-       /* Check for duplicate name */
-       if (node_has_duplicate_entry(name))
-               goto fail;
-
        reg = calloc(1, sizeof(*reg) + (sizeof(char *) * node->nb_edges));
        if (reg == NULL) {
                rte_errno = ENOMEM;