[dpdk-dev] [PATCH 03/10] bus/dpaa: fix management command init calling
Min Hu (Connor)
humin29 at huawei.com
Mon Apr 19 15:34:42 CEST 2021
'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: stable at dpdk.org
Signed-off-by: Min Hu (Connor) <humin29 at 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
More information about the dev
mailing list