Imported Upstream version 16.11.1
[deb_dpdk.git] / lib / librte_mempool / rte_mempool_stack.c
index 5fd8af2..817f77e 100644 (file)
@@ -118,7 +118,7 @@ stack_dequeue(struct rte_mempool *mp, void **obj_table,
 
        s->len -= n;
        rte_spinlock_unlock(&s->sl);
-       return n;
+       return 0;
 }
 
 static unsigned