This issue was reported by PVS studio, described as: https://pvs-studio.com/en/docs/warnings/v1001/
Signed-off-by: Rong Qian <qi...@yunsilicon.com> Signed-off-by: Renyong Wan <wa...@yunsilicon.com> --- drivers/net/xsc/xsc_ethdev.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/net/xsc/xsc_ethdev.c b/drivers/net/xsc/xsc_ethdev.c index 0729d43884..d04fe78d3f 100644 --- a/drivers/net/xsc/xsc_ethdev.c +++ b/drivers/net/xsc/xsc_ethdev.c @@ -314,6 +314,11 @@ xsc_ethdev_start(struct rte_eth_dev *dev) dev->tx_pkt_burst = xsc_tx_burst; ret = xsc_ethdev_enable(dev); + if (ret) { + PMD_DRV_LOG(ERR, "Failed to enable port: %u", + dev->data->port_id); + goto error; + } return 0; -- 2.25.1