diff --git a/test/unit/lib/bdev/compress.c/compress_ut.c b/test/unit/lib/bdev/compress.c/compress_ut.c index 5fbb92001..ee2e22c2b 100644 --- a/test/unit/lib/bdev/compress.c/compress_ut.c +++ b/test/unit/lib/bdev/compress.c/compress_ut.c @@ -736,8 +736,6 @@ test_initdrivers(void) { int rc; static struct rte_mempool *orig_mbuf_mp; - struct comp_device_qp *dev_qp; - struct comp_device_qp *tmp_qp; orig_mbuf_mp = g_mbuf_mp; g_mbuf_mp = NULL; @@ -820,12 +818,6 @@ test_initdrivers(void) rc = vbdev_init_compress_drivers(); CU_ASSERT(rc == 0); - TAILQ_FOREACH_SAFE(dev_qp, &g_comp_device_qp, link, tmp_qp) { - TAILQ_REMOVE(&g_comp_device_qp, dev_qp, link); - free(dev_qp->device); - free(dev_qp); - } - g_mbuf_mp = orig_mbuf_mp; }