[dpdk-dev] [PATCH 2/4] event/dlb: fix no-effect Coverity warning

Timothy McDaniel timothy.mcdaniel at intel.com
Thu Nov 5 22:22:54 CET 2020


Remove nonproductive assignment of qmport->cq_depth.

Fixes: ee57517 ("event/dlb: add port setup")
Coverity issue: 363717
Cc: stable at dpdk.org

Signed-off-by: Timothy McDaniel <timothy.mcdaniel at intel.com>
---
 drivers/event/dlb/dlb.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/event/dlb/dlb.c b/drivers/event/dlb/dlb.c
index 2bb270d..0c95c47 100644
--- a/drivers/event/dlb/dlb.c
+++ b/drivers/event/dlb/dlb.c
@@ -1000,7 +1000,6 @@ dlb_hw_create_ldb_port(struct dlb_eventdev *dlb,
 	/* The credit window is one high water mark of QEs */
 	qm_port->dir_pushcount_at_credit_expiry = 0;
 	qm_port->cached_dir_credits = cfg.dir_credit_high_watermark;
-	qm_port->cq_depth = cfg.cq_depth;
 	/* CQs with depth < 8 use an 8-entry queue, but withhold credits so
 	 * the effective depth is smaller.
 	 */
-- 
2.6.4



More information about the dev mailing list