git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
app/test: remove unneeded casts
[dpdk.git]
/
app
/
test
/
test_ring.c
diff --git
a/app/test/test_ring.c
b/app/test/test_ring.c
index
2cd8e77
..
ce25329
100644
(file)
--- a/
app/test/test_ring.c
+++ b/
app/test/test_ring.c
@@
-1259,7
+1259,7
@@
test_ring_basic_ex(void)
struct rte_ring * rp;
void **obj = NULL;
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;
if (obj == NULL) {
printf("test_ring_basic_ex fail to rte_malloc\n");
goto fail_test;