From: Adam Dybkowski Date: Wed, 6 May 2020 21:31:07 +0000 (+0200) Subject: common/qat: remove redundant check X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=b5d704b92a8316f76f464efa5770efee6afa1ca4;p=dpdk.git common/qat: remove redundant check This patch removed the non-essential check for NULL pointer. Coverity issue: 357770 Fixes: c13cecf60f12 ("compress/qat: support IM buffer too small operation") Signed-off-by: Adam Dybkowski Acked-by: Fiona Trahe --- diff --git a/drivers/common/qat/qat_qp.c b/drivers/common/qat/qat_qp.c index 9d7091af34..8e6dd04eb7 100644 --- a/drivers/common/qat/qat_qp.c +++ b/drivers/common/qat/qat_qp.c @@ -860,7 +860,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 */