From 9d168c68dfa5c28f15e6e03bfcaaa0cef24ca40a Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Fri, 13 Jun 2014 18:06:24 -0700 Subject: [PATCH] virtio: remove unused adapter_stopped field This flag was set to zero (but was already zero) and never used. Signed-off-by: Stephen Hemminger Acked-by: Alan Carew --- lib/librte_pmd_virtio/virtio_ethdev.c | 2 -- lib/librte_pmd_virtio/virtio_pci.h | 1 - 2 files changed, 3 deletions(-) diff --git a/lib/librte_pmd_virtio/virtio_ethdev.c b/lib/librte_pmd_virtio/virtio_ethdev.c index 42fcd2d38a..22a9186522 100644 --- a/lib/librte_pmd_virtio/virtio_ethdev.c +++ b/lib/librte_pmd_virtio/virtio_ethdev.c @@ -952,8 +952,6 @@ virtio_dev_start(struct rte_eth_dev *dev) /* Tell the host we've known how to drive the device. */ vtpci_set_status(hw, VIRTIO_CONFIG_STATUS_DRIVER); - hw->adapter_stopped = 0; - virtio_dev_cq_start(dev); /* Do final configuration before rx/tx engine starts */ diff --git a/lib/librte_pmd_virtio/virtio_pci.h b/lib/librte_pmd_virtio/virtio_pci.h index 6d4c23042a..a787fd2325 100644 --- a/lib/librte_pmd_virtio/virtio_pci.h +++ b/lib/librte_pmd_virtio/virtio_pci.h @@ -179,7 +179,6 @@ struct virtio_hw { uint8_t revision_id; uint8_t use_msix; uint8_t mac_addr[ETHER_ADDR_LEN]; - int adapter_stopped; }; /* -- 2.20.1