summaryrefslogtreecommitdiff
path: root/drivers/bus/fslmc
diff options
context:
space:
mode:
authorNipun Gupta <nipun.gupta@nxp.com>2018-02-05 10:51:54 +0530
committerThomas Monjalon <thomas@monjalon.net>2018-02-06 00:37:56 +0100
commit285c5616e69f8729757115b5312a9290dcce23b4 (patch)
treec07e3ba22c95b379f01b657d568ebef293080ab5 /drivers/bus/fslmc
parent9576ded31edeee3ca82799bf55db6a5458f44feb (diff)
downloaddpdk-285c5616e69f8729757115b5312a9290dcce23b4.zip
dpdk-285c5616e69f8729757115b5312a9290dcce23b4.tar.gz
dpdk-285c5616e69f8729757115b5312a9290dcce23b4.tar.xz
bus/fslmc: fix mempool ops registration
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>
Diffstat (limited to 'drivers/bus/fslmc')
-rw-r--r--drivers/bus/fslmc/portal/dpaa2_hw_dpbp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/bus/fslmc/portal/dpaa2_hw_dpbp.c b/drivers/bus/fslmc/portal/dpaa2_hw_dpbp.c
index 1539739..f1f14e2 100644
--- a/drivers/bus/fslmc/portal/dpaa2_hw_dpbp.c
+++ b/drivers/bus/fslmc/portal/dpaa2_hw_dpbp.c
@@ -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;