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.dybkow...@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