Commit f32a2605 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by David S. Miller

vmxnet3: remove device counter

An atomic counter of devices present is maintained but never used.
Signed-off-by: default avatarStephen Hemminger <stephen@networkplumber.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4816a072
...@@ -43,8 +43,6 @@ static DEFINE_PCI_DEVICE_TABLE(vmxnet3_pciid_table) = { ...@@ -43,8 +43,6 @@ static DEFINE_PCI_DEVICE_TABLE(vmxnet3_pciid_table) = {
MODULE_DEVICE_TABLE(pci, vmxnet3_pciid_table); MODULE_DEVICE_TABLE(pci, vmxnet3_pciid_table);
static atomic_t devices_found;
static int enable_mq = 1; static int enable_mq = 1;
static int irq_share_mode; static int irq_share_mode;
...@@ -3005,8 +3003,6 @@ vmxnet3_probe_device(struct pci_dev *pdev, ...@@ -3005,8 +3003,6 @@ vmxnet3_probe_device(struct pci_dev *pdev,
SET_NETDEV_DEV(netdev, &pdev->dev); SET_NETDEV_DEV(netdev, &pdev->dev);
vmxnet3_declare_features(adapter, dma64); vmxnet3_declare_features(adapter, dma64);
adapter->dev_number = atomic_read(&devices_found);
adapter->share_intr = irq_share_mode; adapter->share_intr = irq_share_mode;
if (adapter->share_intr == VMXNET3_INTR_BUDDYSHARE && if (adapter->share_intr == VMXNET3_INTR_BUDDYSHARE &&
adapter->num_tx_queues != adapter->num_rx_queues) adapter->num_tx_queues != adapter->num_rx_queues)
...@@ -3057,7 +3053,6 @@ vmxnet3_probe_device(struct pci_dev *pdev, ...@@ -3057,7 +3053,6 @@ vmxnet3_probe_device(struct pci_dev *pdev,
} }
vmxnet3_check_link(adapter, false); vmxnet3_check_link(adapter, false);
atomic_inc(&devices_found);
return 0; return 0;
err_register: err_register:
......
...@@ -352,7 +352,6 @@ struct vmxnet3_adapter { ...@@ -352,7 +352,6 @@ struct vmxnet3_adapter {
unsigned long state; /* VMXNET3_STATE_BIT_xxx */ unsigned long state; /* VMXNET3_STATE_BIT_xxx */
int dev_number;
int share_intr; int share_intr;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment