* [dpdk-dev] [PATCH 1/2] baseband/turbo_sw: remove logically dead code
2019-08-06 13:27 [dpdk-dev] [PATCH 0/2] coverity fixes for bbdev Nicolas Chautru
@ 2019-08-06 13:27 ` Nicolas Chautru
2019-08-06 13:27 ` [dpdk-dev] [PATCH 2/2] app/bbdev: fix unchecked return valued Nicolas Chautru
2019-08-06 20:54 ` [dpdk-dev] [PATCH 0/2] coverity fixes for bbdev Thomas Monjalon
2 siblings, 0 replies; 4+ messages in thread
From: Nicolas Chautru @ 2019-08-06 13:27 UTC (permalink / raw)
To: dev, akhil.goyal; +Cc: ferruh.yigit, thomas, john.mcnamara, Nicolas Chautru
Coverity issue : 344980, 344992
Signed-off-by: Nicolas Chautru <nicolas.chautru@intel.com>
---
drivers/baseband/turbo_sw/bbdev_turbo_software.c | 12 ------------
1 file changed, 12 deletions(-)
diff --git a/drivers/baseband/turbo_sw/bbdev_turbo_software.c b/drivers/baseband/turbo_sw/bbdev_turbo_software.c
index acb63a4..f2fe7a2 100644
--- a/drivers/baseband/turbo_sw/bbdev_turbo_software.c
+++ b/drivers/baseband/turbo_sw/bbdev_turbo_software.c
@@ -1610,12 +1610,6 @@ struct turbo_sw_queue {
}
r++;
}
-
- if (mbuf_total_left != 0) {
- op->status |= 1 << RTE_BBDEV_DATA_ERROR;
- rte_bbdev_log(ERR,
- "Mismatch between mbuf length and included Circular buffer sizes");
- }
}
static inline void
@@ -1706,12 +1700,6 @@ struct turbo_sw_queue {
}
r++;
}
-
- if (mbuf_total_left != 0) {
- op->status |= 1 << RTE_BBDEV_DATA_ERROR;
- rte_bbdev_log(ERR,
- "Mismatch between mbuf length and included Circular buffer sizes");
- }
}
static inline uint16_t
--
1.8.3.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [dpdk-dev] [PATCH 2/2] app/bbdev: fix unchecked return valued
2019-08-06 13:27 [dpdk-dev] [PATCH 0/2] coverity fixes for bbdev Nicolas Chautru
2019-08-06 13:27 ` [dpdk-dev] [PATCH 1/2] baseband/turbo_sw: remove logically dead code Nicolas Chautru
@ 2019-08-06 13:27 ` Nicolas Chautru
2019-08-06 20:54 ` [dpdk-dev] [PATCH 0/2] coverity fixes for bbdev Thomas Monjalon
2 siblings, 0 replies; 4+ messages in thread
From: Nicolas Chautru @ 2019-08-06 13:27 UTC (permalink / raw)
To: dev, akhil.goyal; +Cc: ferruh.yigit, thomas, john.mcnamara, Nicolas Chautru
Coverity issue: 344986
Signed-off-by: Nicolas Chautru <nicolas.chautru@intel.com>
---
app/test-bbdev/test_bbdev_perf.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/app/test-bbdev/test_bbdev_perf.c b/app/test-bbdev/test_bbdev_perf.c
index a166eaf..7ab61ef 100644
--- a/app/test-bbdev/test_bbdev_perf.c
+++ b/app/test-bbdev/test_bbdev_perf.c
@@ -3163,7 +3163,8 @@ typedef int (test_case_function)(struct active_device *ad,
if (unlikely(num_to_process - dequeued < burst_sz))
burst_sz = num_to_process - dequeued;
- rte_bbdev_enc_op_alloc_bulk(mempool, ops_enq, burst_sz);
+ ret = rte_bbdev_enc_op_alloc_bulk(mempool, ops_enq, burst_sz);
+ TEST_ASSERT_SUCCESS(ret, "rte_bbdev_op_alloc_bulk() failed");
if (test_vector.op_type != RTE_BBDEV_OP_NONE)
copy_reference_enc_op(ops_enq, burst_sz, dequeued,
bufs->inputs,
@@ -3244,7 +3245,8 @@ typedef int (test_case_function)(struct active_device *ad,
if (unlikely(num_to_process - dequeued < burst_sz))
burst_sz = num_to_process - dequeued;
- rte_bbdev_enc_op_alloc_bulk(mempool, ops_enq, burst_sz);
+ ret = rte_bbdev_enc_op_alloc_bulk(mempool, ops_enq, burst_sz);
+ TEST_ASSERT_SUCCESS(ret, "rte_bbdev_op_alloc_bulk() failed");
if (test_vector.op_type != RTE_BBDEV_OP_NONE)
copy_reference_ldpc_enc_op(ops_enq, burst_sz, dequeued,
bufs->inputs,
--
1.8.3.1
^ permalink raw reply [flat|nested] 4+ messages in thread