[PATCH v1 1/1] net/octeon_ep: fix return code
Vamsi Krishna
vattunuru at marvell.com
Tue Oct 15 09:25:29 CEST 2024
From: Vamsi Attunuru <vattunuru at marvell.com>
In the changeset 304ba46be396, a goto statement was
mistakenly added after a return statement. This patch
corrects the code by removing the erroneous return.
Coverity issue: 445484
Fixes: 304ba46be396 ("net/octeon_ep: handle device removal on probe")
Signed-off-by: Vamsi Attunuru <vattunuru at marvell.com>
---
drivers/net/octeon_ep/otx_ep_ethdev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/octeon_ep/otx_ep_ethdev.c b/drivers/net/octeon_ep/otx_ep_ethdev.c
index 42cfe4250c..b4f8baf3b3 100644
--- a/drivers/net/octeon_ep/otx_ep_ethdev.c
+++ b/drivers/net/octeon_ep/otx_ep_ethdev.c
@@ -849,7 +849,7 @@ otx_ep_eth_dev_init(struct rte_eth_dev *eth_dev)
otx_ep_info("Using pkind %d.", otx_epvf->pkind);
} else {
otx_ep_err("Invalid chip id");
- return -EINVAL;
+ ret = -EINVAL;
goto exit;
}
--
2.34.1
More information about the dev
mailing list