bus/dpaa: remove logically dead code
authorYunjian Wang <wangyunjian@huawei.com>
Mon, 24 Aug 2020 13:02:39 +0000 (21:02 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 18 Sep 2020 16:55:07 +0000 (18:55 +0200)
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 <wangyunjian@huawei.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/bus/dpaa/base/qbman/qman_driver.c

index 1166d68..a466c69 100644 (file)
@@ -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);