bus/dpaa: fix unchecked return value
Coverity issue: 268323
Fixes: 5d944582d0
("bus/dpaa: check portal presence in the caller function")
Cc: stable@dpdk.org
Signed-off-by: Sunil Kumar Kori <sunil.kori@nxp.com>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
This commit is contained in:
parent
894888540b
commit
23386f2ece
@ -308,9 +308,15 @@ rte_dpaa_portal_fq_init(void *arg, struct qman_fq *fq)
|
||||
/* Affine above created portal with channel*/
|
||||
u32 sdqcr;
|
||||
struct qman_portal *qp;
|
||||
int ret;
|
||||
|
||||
if (unlikely(!RTE_PER_LCORE(dpaa_io)))
|
||||
rte_dpaa_portal_init(arg);
|
||||
if (unlikely(!RTE_PER_LCORE(dpaa_io))) {
|
||||
ret = rte_dpaa_portal_init(arg);
|
||||
if (ret < 0) {
|
||||
DPAA_BUS_LOG(ERR, "portal initialization failure");
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
/* Initialise qman specific portals */
|
||||
qp = fsl_qman_portal_create();
|
||||
|
Loading…
Reference in New Issue
Block a user