]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/ring/rte_eth_ring.c
cfgfile: fix leak on creation error
[dpdk.git] / drivers / net / ring / rte_eth_ring.c
index 61473ca4d490cd45ce038d702fb89049b4cbeb57..76355a1c7691082728773484086b88c1cc4c1219 100644 (file)
@@ -36,7 +36,6 @@
 #include <rte_ethdev.h>
 #include <rte_malloc.h>
 #include <rte_memcpy.h>
-#include <rte_memzone.h>
 #include <rte_string_fns.h>
 #include <rte_vdev.h>
 #include <rte_kvargs.h>
@@ -358,7 +357,6 @@ do_eth_dev_ring_create(const char *name,
 
        eth_dev->data = data;
        eth_dev->dev_ops = &ops;
-       data->dev_flags = RTE_ETH_DEV_DETACHABLE;
        data->kdrv = RTE_KDRV_NONE;
        data->numa_node = numa_node;