]> git.droids-corp.org - dpdk.git/blobdiff - app/test/test_ring.c
app/test: remove unneeded casts
[dpdk.git] / app / test / test_ring.c
index 2cd8e7727b1e064909b062429a02df9756f8c17d..ce253292313139bd37350e035758a0a5465b1ed7 100644 (file)
@@ -1259,7 +1259,7 @@ test_ring_basic_ex(void)
        struct rte_ring * rp;
        void **obj = NULL;
 
-       obj = (void **)rte_zmalloc("test_ring_basic_ex_malloc", (RING_SIZE * sizeof(void *)), 0);
+       obj = rte_calloc("test_ring_basic_ex_malloc", RING_SIZE, sizeof(void *), 0);
        if (obj == NULL) {
                printf("test_ring_basic_ex fail to rte_malloc\n");
                goto fail_test;