]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_hash/rte_fbk_hash.c
remove useless memzone includes
[dpdk.git] / lib / librte_hash / rte_fbk_hash.c
index 8752a477e9be2a854cac56d7f8926a207820e141..c87719fb69eca531514cf355510ba2173d8b96a3 100644 (file)
@@ -39,7 +39,6 @@
 
 #include <sys/queue.h>
 #include <rte_memory.h>
-#include <rte_memzone.h>
 #include <rte_eal.h>
 #include <rte_eal_memconfig.h>
 #include <rte_malloc.h>
@@ -140,8 +139,11 @@ rte_fbk_hash_create(const struct rte_fbk_hash_params *params)
                if (strncmp(params->name, ht->name, RTE_FBK_HASH_NAMESIZE) == 0)
                        break;
        }
-       if (te != NULL)
+       ht = NULL;
+       if (te != NULL) {
+               rte_errno = EEXIST;
                goto exit;
+       }
 
        te = rte_zmalloc("FBK_HASH_TAILQ_ENTRY", sizeof(*te), 0);
        if (te == NULL) {