diff options
author | Stuart Haslam <stuart.haslam@linaro.org> | 2015-09-11 11:15:02 +0100 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2015-09-14 12:55:52 +0300 |
commit | 8e8bd180aae61ad5c78b77ed3ec384df8277a28b (patch) | |
tree | 26e214d68e02c8dd8c66551ab409fa0c8682c3fe | |
parent | 7276bda13f34deac524f6e4f1c5c26b4b7b194ee (diff) |
linux-generic: queue: fix pktout_enqueue() logic
Fix inverted logic when checking the return value of pktout_enqueue.
Signed-off-by: Stuart Haslam <stuart.haslam@linaro.org>
Reviewed-and-tested-by: Bill Fischofer <bill.fischofer@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
-rw-r--r-- | platform/linux-generic/odp_queue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/linux-generic/odp_queue.c b/platform/linux-generic/odp_queue.c index ac933da..f8e6740 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; } |