Coverity issue: 385414, 374016 Fixes: c836a7ba33e ("net/octeon_ep: support mailbox between VF and PF") Fixes: bb5b5bf1e5c ("net/enetfec: support queue configuration") Signed-off-by: Ariel Otilibili <otili...@eurecom.fr> -- Cc: sta...@dpdk.org Cc: Vamsi Attunuru <vattun...@marvell.com> Cc: Apeksha Gupta <apeksha.gu...@nxp.com> Cc: Sachin Saxena <sachin.sax...@nxp.com> --- drivers/net/enetfec/enet_ethdev.c | 1 - drivers/net/octeon_ep/otx_ep_mbox.c | 3 --- 2 files changed, 4 deletions(-)
diff --git a/drivers/net/enetfec/enet_ethdev.c b/drivers/net/enetfec/enet_ethdev.c index 91c0f60490..0d27b63953 100644 --- a/drivers/net/enetfec/enet_ethdev.c +++ b/drivers/net/enetfec/enet_ethdev.c @@ -415,7 +415,6 @@ enetfec_tx_queue_setup(struct rte_eth_dev *dev, offset_des_active_txq[queue_idx]; bd_base = (struct bufdesc *)(((uintptr_t)bd_base) + size); txq->bd.last = (struct bufdesc *)(((uintptr_t)bd_base) - dsize); - bdp = txq->bd.base; bdp = txq->bd.cur; for (i = 0; i < txq->bd.ring_size; i++) { diff --git a/drivers/net/octeon_ep/otx_ep_mbox.c b/drivers/net/octeon_ep/otx_ep_mbox.c index 64a51c1fd0..1d7e08d2cc 100644 --- a/drivers/net/octeon_ep/otx_ep_mbox.c +++ b/drivers/net/octeon_ep/otx_ep_mbox.c @@ -256,9 +256,6 @@ int otx_ep_mbox_get_link_info(struct rte_eth_dev *eth_dev, } link->link_status = RTE_ETH_LINK_UP; link->link_duplex = RTE_ETH_LINK_FULL_DUPLEX; - link->link_autoneg = (link_info.autoneg == - OTX_EP_LINK_AUTONEG) ? RTE_ETH_LINK_AUTONEG : RTE_ETH_LINK_FIXED; - link->link_autoneg = link_info.autoneg; link->link_speed = link_info.speed; return 0; -- 2.47.1