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: fix unused values
[dpdk.git]
/
app
/
test
/
test_ring.c
diff --git
a/app/test/test_ring.c
b/app/test/test_ring.c
index
9a07479
..
ecc7531
100644
(file)
--- a/
app/test/test_ring.c
+++ b/
app/test/test_ring.c
@@
-579,7
+579,7
@@
test_set_watermark( void ){
}
count = 0;
}
count = 0;
-
setwm =
rte_ring_set_water_mark(r, count);
+ rte_ring_set_water_mark(r, count);
if (r->prod.watermark != r->prod.size) {
printf("Test failed to detect invalid watermark count value\n");
goto error;
if (r->prod.watermark != r->prod.size) {
printf("Test failed to detect invalid watermark count value\n");
goto error;
@@
-820,18
+820,13
@@
test_ring_basic(void)
cur_dst = dst;
ret = rte_ring_mp_enqueue(r, cur_src);
cur_dst = dst;
ret = rte_ring_mp_enqueue(r, cur_src);
- cur_src += 1;
if (ret != 0)
goto fail;
ret = rte_ring_mc_dequeue(r, cur_dst);
if (ret != 0)
goto fail;
ret = rte_ring_mc_dequeue(r, cur_dst);
- cur_dst += 1;
if (ret != 0)
goto fail;
if (ret != 0)
goto fail;
- cur_src = src;
- cur_dst = dst;
-
if (src)
free(src);
if (dst)
if (src)
free(src);
if (dst)