'bm_mc_init' only return 0, but the function whicl calls int
check the negative ret, and this is redundant.

This patch fixed it by not checking the return value.

Fixes: f38f61e982f8 ("bus/dpaa: add BMAN hardware interfaces")
Cc: sta...@dpdk.org

Signed-off-by: Min Hu (Connor) <humi...@huawei.com>
---
 drivers/bus/dpaa/base/qbman/bman.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/bus/dpaa/base/qbman/bman.c 
b/drivers/bus/dpaa/base/qbman/bman.c
index 8a62907..e1ba2a8 100644
--- a/drivers/bus/dpaa/base/qbman/bman.c
+++ b/drivers/bus/dpaa/base/qbman/bman.c
@@ -70,10 +70,8 @@ struct bman_portal *bman_create_portal(struct bman_portal 
*portal,
                pr_err("Bman RCR initialisation failed\n");
                return NULL;
        }
-       if (bm_mc_init(p)) {
-               pr_err("Bman MC initialisation failed\n");
-               goto fail_mc;
-       }
+       (void)bm_mc_init(p);
+
        portal->pools = kmalloc(2 * sizeof(*pools), GFP_KERNEL);
        if (!portal->pools)
                goto fail_pools;
-- 
2.7.4

Reply via email to