Skip to content

Commit

Permalink
vmxnet3: remove device counter
Browse files Browse the repository at this point in the history
An atomic counter of devices present is maintained but never used.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Jan 16, 2013
1 parent 4816a07 commit f32a260
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
5 changes: 0 additions & 5 deletions drivers/net/vmxnet3/vmxnet3_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ static DEFINE_PCI_DEVICE_TABLE(vmxnet3_pciid_table) = {

MODULE_DEVICE_TABLE(pci, vmxnet3_pciid_table);

static atomic_t devices_found;

static int enable_mq = 1;
static int irq_share_mode;

Expand Down Expand Up @@ -3005,8 +3003,6 @@ vmxnet3_probe_device(struct pci_dev *pdev,
SET_NETDEV_DEV(netdev, &pdev->dev);
vmxnet3_declare_features(adapter, dma64);

adapter->dev_number = atomic_read(&devices_found);

adapter->share_intr = irq_share_mode;
if (adapter->share_intr == VMXNET3_INTR_BUDDYSHARE &&
adapter->num_tx_queues != adapter->num_rx_queues)
Expand Down Expand Up @@ -3057,7 +3053,6 @@ vmxnet3_probe_device(struct pci_dev *pdev,
}

vmxnet3_check_link(adapter, false);
atomic_inc(&devices_found);
return 0;

err_register:
Expand Down
1 change: 0 additions & 1 deletion drivers/net/vmxnet3/vmxnet3_int.h
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,6 @@ struct vmxnet3_adapter {

unsigned long state; /* VMXNET3_STATE_BIT_xxx */

int dev_number;
int share_intr;
};

Expand Down

0 comments on commit f32a260

Please sign in to comment.