]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
vmxnet3: remove device counter
authorStephen Hemminger <stephen@networkplumber.org>
Tue, 15 Jan 2013 07:28:32 +0000 (07:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Jan 2013 19:40:51 +0000 (14:40 -0500)
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>
drivers/net/vmxnet3/vmxnet3_drv.c
drivers/net/vmxnet3/vmxnet3_int.h

index 0e5515393c16fb7774efb934be56e4b780ed0dee..1f66a7e3c25f7ce2d2bbd9c026dd840c00a9d7df 100644 (file)
@@ -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;
 
@@ -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)
@@ -3057,7 +3053,6 @@ vmxnet3_probe_device(struct pci_dev *pdev,
        }
 
        vmxnet3_check_link(adapter, false);
-       atomic_inc(&devices_found);
        return 0;
 
 err_register:
index 55465ed5835be539c2914db33b87d52ae4a6983d..3198384689d9fbcb5119c029706844b7d8bc86bc 100644 (file)
@@ -352,7 +352,6 @@ struct vmxnet3_adapter {
 
        unsigned long  state;    /* VMXNET3_STATE_BIT_xxx */
 
-       int dev_number;
        int share_intr;
 };