Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8d34b31e authored by Ethan Zhao's avatar Ethan Zhao Committed by Jeff Kirsher
Browse files

ixgbevf: remove useless bd_number from struct ixgbevf_adapter



It is useless and buggy, just remove it.

Signed-off-by: default avatarEthan Zhao <ethan.zhao@oracle.com>
Tested-by: default avatarPhil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent bf3c228d
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -385,7 +385,6 @@ struct ixgbevf_adapter {
	/* structs defined in ixgbe_vf.h */
	/* structs defined in ixgbe_vf.h */
	struct ixgbe_hw hw;
	struct ixgbe_hw hw;
	u16 msg_enable;
	u16 msg_enable;
	u16 bd_number;
	/* Interrupt Throttle Rate */
	/* Interrupt Throttle Rate */
	u32 eitr_param;
	u32 eitr_param;


+0 −4
Original line number Original line Diff line number Diff line
@@ -3464,7 +3464,6 @@ static int ixgbevf_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
	struct ixgbevf_adapter *adapter = NULL;
	struct ixgbevf_adapter *adapter = NULL;
	struct ixgbe_hw *hw = NULL;
	struct ixgbe_hw *hw = NULL;
	const struct ixgbevf_info *ii = ixgbevf_info_tbl[ent->driver_data];
	const struct ixgbevf_info *ii = ixgbevf_info_tbl[ent->driver_data];
	static int cards_found;
	int err, pci_using_dac;
	int err, pci_using_dac;


	err = pci_enable_device(pdev);
	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);
	ixgbevf_assign_netdev_ops(netdev);


	adapter->bd_number = cards_found;

	/* Setup hw api */
	/* Setup hw api */
	memcpy(&hw->mac.ops, ii->mac_ops, sizeof(hw->mac.ops));
	memcpy(&hw->mac.ops, ii->mac_ops, sizeof(hw->mac.ops));
	hw->mac.type  = ii->mac;
	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, "MAC: %d\n", hw->mac.type);


	hw_dbg(hw, "Intel(R) 82599 Virtual Function\n");
	hw_dbg(hw, "Intel(R) 82599 Virtual Function\n");
	cards_found++;
	return 0;
	return 0;


err_register:
err_register: