From: Yunjian Wang Date: Wed, 9 Sep 2020 01:11:46 +0000 (+0800) Subject: raw/dpaa2_qdma: fix reset X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=f4eb44f81d8c47d157523f893fbab9baeb38f9c1;p=dpdk.git raw/dpaa2_qdma: fix reset This issue detected by coverity, CID#279443(Structurally dead code). Coverity issue: 279443 Fixes: c22fab9a6c34 ("raw/dpaa2_qdma: support configuration APIs") Cc: stable@dpdk.org Signed-off-by: Yunjian Wang Acked-by: Nipun Gupta --- diff --git a/drivers/raw/dpaa2_qdma/dpaa2_qdma.c b/drivers/raw/dpaa2_qdma/dpaa2_qdma.c index 0b9c4e3d72..4b8474951e 100644 --- a/drivers/raw/dpaa2_qdma/dpaa2_qdma.c +++ b/drivers/raw/dpaa2_qdma/dpaa2_qdma.c @@ -452,9 +452,10 @@ rte_qdma_reset(void) /* In case there are pending jobs on any VQ, return -EBUSY */ for (i = 0; i < qdma_dev.max_vqs; i++) { if (qdma_vqs[i].in_use && (qdma_vqs[i].num_enqueues != - qdma_vqs[i].num_dequeues)) + qdma_vqs[i].num_dequeues)) { DPAA2_QDMA_ERR("Jobs are still pending on VQ: %d", i); return -EBUSY; + } } /* Reset HW queues */