Commit 678c610b authored by Hannes Eder's avatar Hannes Eder Committed by David S. Miller

drivers/net/igb: remove dead code (function 'igb_read_pci_cfg')

Fix this warning:

  drivers/net/igb/e1000_mac.c:54: warning: 'igb_read_pci_cfg' defined but not used
Signed-off-by: default avatarHannes Eder <hannes@hanneseder.net>
Acked-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5e4232ee
...@@ -50,13 +50,6 @@ void igb_remove_device(struct e1000_hw *hw) ...@@ -50,13 +50,6 @@ void igb_remove_device(struct e1000_hw *hw)
kfree(hw->dev_spec); kfree(hw->dev_spec);
} }
static void igb_read_pci_cfg(struct e1000_hw *hw, u32 reg, u16 *value)
{
struct igb_adapter *adapter = hw->back;
pci_read_config_word(adapter->pdev, reg, value);
}
static s32 igb_read_pcie_cap_reg(struct e1000_hw *hw, u32 reg, u16 *value) static s32 igb_read_pcie_cap_reg(struct e1000_hw *hw, u32 reg, u16 *value)
{ {
struct igb_adapter *adapter = hw->back; struct igb_adapter *adapter = hw->back;
......
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