ethdev: remove unused variable
PATCH 1/1 ethdev: remove unused variable
When removing the old attach function, the racy variable for getting the last port id became unused.
Fixes c9cce42876f5 ("ethdev: remove deprecated attach/detach functions")
Signed-off-by Thomas Monjalon <[email protected]>
--- lib/librte_ethdev/rte_ethdev.c | 3 --- 1 file changed, 3 deletions(-)
lib/librte_ethdev/rte_ethdev.c +0 -3
@@ -48,7 +48,6 @@ int rte_eth_dev_logtype;static const char *MZ_RTE_ETH_DEV_DATA ="rte_eth_dev_data" ;struct rte_eth_dev rte_eth_devices[RTE_MAX_ETHPORTS ]; -static uint16_t eth_dev_last_created_port;/* spinlock for eth device callbacks */ static rte_spinlock_t rte_eth_dev_cb_lock =RTE_SPINLOCK_INITIALIZER ;
@@ -445,8 +444,6 @@ eth_dev_get(uint16_t port_id) eth_dev->data = &rte_eth_dev_shared_data->data[port_id]; - eth_dev_last_created_port = port_id; -return eth_dev; }
Signature · 1 line
2.20.1
Quoted 7 lines · Thomas Monjalon
When removing the old attach function, the racy variable for getting the last port id became unused.
Fixes c9cce42876f5 ("ethdev: remove deprecated attach/detach functions")Signed-off-by Thomas Monjalon <[email protected]>
Reviewed-by Andrew Rybchenko <[email protected]>
Ferruh Yigit
AppliedQuoted 9 lines · Andrew Rybchenko
Quoted 7 lines · Thomas Monjalon
When removing the old attach function, the racy variable for getting the last port id became unused.
Fixes c9cce42876f5 ("ethdev: remove deprecated attach/detach functions")Signed-off-by Thomas Monjalon <[email protected]>Reviewed-by Andrew Rybchenko <[email protected]>
Applied to dpdk-next-net/master, thanks.