summaryrefslogtreecommitdiff
path: root/drivers/net/ring
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2016-12-23 16:57:55 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2016-12-24 18:47:19 +0100
commit74343fa77db0fdce9cb87cbaa836c4974351e07c (patch)
tree0e1982292ba402ab87ada1c707eb90a4d9c5123d /drivers/net/ring
parent71ff78a7f7411e659708d26af8563fc78835ef39 (diff)
downloaddpdk-next-eventdev-74343fa77db0fdce9cb87cbaa836c4974351e07c.zip
dpdk-next-eventdev-74343fa77db0fdce9cb87cbaa836c4974351e07c.tar.gz
dpdk-next-eventdev-74343fa77db0fdce9cb87cbaa836c4974351e07c.tar.xz
drivers: remove useless reset of PCI device pointer
Since rte_eth_dev_info_get does memset() on dev_info before calling device specific code, the explicit assignment of NULL in all these virtual drivers has no effect. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Acked-by: Jan Blunck <jblunck@infradead.org>
Diffstat (limited to 'drivers/net/ring')
-rw-r--r--drivers/net/ring/rte_eth_ring.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ring/rte_eth_ring.c b/drivers/net/ring/rte_eth_ring.c
index c7726f4..975956a 100644
--- a/drivers/net/ring/rte_eth_ring.c
+++ b/drivers/net/ring/rte_eth_ring.c
@@ -179,7 +179,6 @@ eth_dev_info(struct rte_eth_dev *dev,
dev_info->max_rx_queues = (uint16_t)internals->max_rx_queues;
dev_info->max_tx_queues = (uint16_t)internals->max_tx_queues;
dev_info->min_rx_bufsize = 0;
- dev_info->pci_dev = NULL;
}
static void