Fix inverted logic when checking the return value of pktout_enqueue.
Signed-off-by: Stuart Haslam <[email protected]>
---
platform/linux-generic/odp_queue.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/platform/linux-generic/odp_queue.c
b/platform/linux-generic/odp_queue.c
index 99a663d..95a2df8 100644
--- a/platform/linux-generic/odp_queue.c
+++ b/platform/linux-generic/odp_queue.c
@@ -758,7 +758,7 @@ int queue_pktout_enq(queue_entry_t *queue, odp_buffer_hdr_t
*buf_hdr,
return -1;
} else {
rc = pktout_enqueue(queue, buf_hdr);
- if (!rc)
+ if (rc)
return rc;
}
--
2.1.1
_______________________________________________
lng-odp mailing list
[email protected]
https://lists.linaro.org/mailman/listinfo/lng-odp