test_ring_inc_ptr(void **obj, int esize, unsigned int n)
{
/* Legacy queue APIs? */
- if ((esize) == -1)
+ if (esize == -1)
return ((void **)obj) + n;
else
return (void **)(((uint32_t *)obj) +
int socket_id, unsigned int flags)
{
/* Legacy queue APIs? */
- if ((esize) == -1)
- return rte_ring_create((name), (count), (socket_id), (flags));
+ if (esize == -1)
+ return rte_ring_create(name, count, socket_id, flags);
else
- return rte_ring_create_elem((name), (esize), (count),
- (socket_id), (flags));
+ return rte_ring_create_elem(name, esize, count,
+ socket_id, flags);
}
static __rte_always_inline unsigned int
unsigned int api_type)
{
/* Legacy queue APIs? */
- if ((esize) == -1)
+ if (esize == -1)
switch (api_type) {
case (TEST_RING_THREAD_DEF | TEST_RING_ELEM_SINGLE):
return rte_ring_enqueue(r, *obj);
unsigned int api_type)
{
/* Legacy queue APIs? */
- if ((esize) == -1)
+ if (esize == -1)
switch (api_type) {
case (TEST_RING_THREAD_DEF | TEST_RING_ELEM_SINGLE):
return rte_ring_dequeue(r, obj);