[dpdk-dev] [PATCH] common/qat: fix coverity issue
Adam Dybkowski
adamx.dybkowski at intel.com
Wed May 6 23:31:07 CEST 2020
This patch fixes Coverity issue #357770 by removing the non-essential
check for NULL pointer.
Fixes: c13cecf60f12 ("compress/qat: support IM buffer too small operation")
Signed-off-by: Adam Dybkowski <adamx.dybkowski at intel.com>
---
drivers/common/qat/qat_qp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/common/qat/qat_qp.c b/drivers/common/qat/qat_qp.c
index 64dfd85c4..60ef8bf0f 100644
--- a/drivers/common/qat/qat_qp.c
+++ b/drivers/common/qat/qat_qp.c
@@ -864,7 +864,7 @@ qat_dequeue_op_burst(void *qp, void **ops, uint16_t nb_ops)
resp_msg = (uint8_t *)rx_queue->base_addr + head;
- if (ops != NULL && nb_fw_responses) {
+ if (nb_fw_responses) {
/* only move on to next op if one was ready to return
* to API
*/
--
2.17.1
More information about the dev
mailing list