From: Hannes Eder Date: Fri, 26 Dec 2008 08:02:49 +0000 (-0800) Subject: drivers/net/igb: remove dead code (function 'igb_read_pci_cfg') X-Git-Tag: v2.6.29-rc1~581^2~45 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=678c610b5a069a0a76c3189dd9aa801e5d5cd7e0;p=linux-2.6-omap-h63xx.git 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: Hannes Eder Acked-by: Jeff Kirsher Signed-off-by: David S. Miller --- diff --git a/drivers/net/igb/e1000_mac.c b/drivers/net/igb/e1000_mac.c index 137269daeb2..97f0049a5d6 100644 --- a/drivers/net/igb/e1000_mac.c +++ b/drivers/net/igb/e1000_mac.c @@ -50,13 +50,6 @@ void igb_remove_device(struct e1000_hw *hw) 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) { struct igb_adapter *adapter = hw->back;