common/qat: remove redundant check
authorAdam Dybkowski <adamx.dybkowski@intel.com>
Wed, 6 May 2020 21:31:07 +0000 (23:31 +0200)
committerAkhil Goyal <akhil.goyal@nxp.com>
Mon, 11 May 2020 11:17:43 +0000 (13:17 +0200)
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 <adamx.dybkowski@intel.com>
Acked-by: Fiona Trahe <fiona.trahe@intel.com>
drivers/common/qat/qat_qp.c

index 9d7091a..8e6dd04 100644 (file)
@@ -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
                         */