]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ixgbevf: remove useless bd_number from struct ixgbevf_adapter
authorEthan Zhao <ethan.zhao@oracle.com>
Tue, 29 Jul 2014 09:44:01 +0000 (09:44 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 18 Sep 2014 09:59:27 +0000 (02:59 -0700)
It is useless and buggy, just remove it.

Signed-off-by: Ethan Zhao <ethan.zhao@oracle.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbevf/ixgbevf.h
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c

index a0a1de9ce2389fdcc15ebad8f19a26b456d12447..ba96cb5b886d2880f83ebad953f75b05c71a3276 100644 (file)
@@ -385,7 +385,6 @@ struct ixgbevf_adapter {
        /* structs defined in ixgbe_vf.h */
        struct ixgbe_hw hw;
        u16 msg_enable;
-       u16 bd_number;
        /* Interrupt Throttle Rate */
        u32 eitr_param;
 
index c22a00c3621ab96b79d53033a0ef4283016a5185..030a219c85e363802644f1302dbf56c0ac709c8b 100644 (file)
@@ -3464,7 +3464,6 @@ static int ixgbevf_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
        struct ixgbevf_adapter *adapter = NULL;
        struct ixgbe_hw *hw = NULL;
        const struct ixgbevf_info *ii = ixgbevf_info_tbl[ent->driver_data];
-       static int cards_found;
        int err, pci_using_dac;
 
        err = pci_enable_device(pdev);
@@ -3525,8 +3524,6 @@ static int ixgbevf_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
 
        ixgbevf_assign_netdev_ops(netdev);
 
-       adapter->bd_number = cards_found;
-
        /* Setup hw api */
        memcpy(&hw->mac.ops, ii->mac_ops, sizeof(hw->mac.ops));
        hw->mac.type  = ii->mac;
@@ -3601,7 +3598,6 @@ static int ixgbevf_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
        hw_dbg(hw, "MAC: %d\n", hw->mac.type);
 
        hw_dbg(hw, "Intel(R) 82599 Virtual Function\n");
-       cards_found++;
        return 0;
 
 err_register: