From 126a2c485c8012ff47bfd4825b9f71d2e606e3b8 Mon Sep 17 00:00:00 2001 From: Yunjian Wang Date: Mon, 24 Aug 2020 21:02:39 +0800 Subject: [PATCH] bus/dpaa: remove logically dead code This patch removes logically dead code reported by coverity. Coverity issue: 349930 Fixes: b9c94167904f ("bus/dpaa: decouple FQ portal alloc and init") Cc: stable@dpdk.org Signed-off-by: Yunjian Wang Reviewed-by: Ferruh Yigit --- drivers/bus/dpaa/base/qbman/qman_driver.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/bus/dpaa/base/qbman/qman_driver.c b/drivers/bus/dpaa/base/qbman/qman_driver.c index 1166d68e21..a466c698fc 100644 --- a/drivers/bus/dpaa/base/qbman/qman_driver.c +++ b/drivers/bus/dpaa/base/qbman/qman_driver.c @@ -189,8 +189,6 @@ struct qman_portal *fsl_qman_fq_portal_create(int *fd) *fd = q_fd; return portal; err: - if (portal) - qman_free_global_portal(portal); if (q_fd) close(q_fd); process_portal_unmap(&q_map.addr); -- 2.20.1