bus/fslmc: fix mempool ops registration
authorNipun Gupta <nipun.gupta@nxp.com>
Mon, 5 Feb 2018 05:21:54 +0000 (10:51 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 5 Feb 2018 23:37:56 +0000 (00:37 +0100)
Fixes: 8824b74d8f5f ("bus/fslmc: register platform HW mempool on runtime")

Signed-off-by: Nipun Gupta <nipun.gupta@nxp.com>
Acked-by: Shreyansh Jain <shreyansh.jain@nxp.com>
drivers/bus/fslmc/portal/dpaa2_hw_dpbp.c

index 1539739..f1f14e2 100644 (file)
@@ -77,8 +77,8 @@ dpaa2_create_dpbp_device(int vdev_fd __rte_unused,
        RTE_LOG(DEBUG, PMD, "DPAA2: Added [dpbp.%d]\n", dpbp_id);
 
        if (!register_once) {
-               if (rte_mbuf_set_platform_mempool_ops(DPAA2_MEMPOOL_OPS_NAME))
-                       register_once = 1;
+               rte_mbuf_set_platform_mempool_ops(DPAA2_MEMPOOL_OPS_NAME);
+               register_once = 1;
        }
 
        return 0;