提交 109f5996 编写于 作者: S Sasha Neftin 提交者: Jeff Kirsher

igc: Remove the 'igc_read_mac_addr_base' method

Remove the redundant 'igc_read_mac_addr_base' method and use
the 'igc_read_mac_addr' method directly instead.
Signed-off-by: NSasha Neftin <sasha.neftin@intel.com>
Tested-by: NAaron Brown <aaron.f.brown@intel.com>
Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
上级 0f9e980b
...@@ -371,19 +371,6 @@ static s32 igc_init_hw_base(struct igc_hw *hw) ...@@ -371,19 +371,6 @@ static s32 igc_init_hw_base(struct igc_hw *hw)
return ret_val; return ret_val;
} }
/**
* igc_read_mac_addr_base - Read device MAC address
* @hw: pointer to the HW structure
*/
static s32 igc_read_mac_addr_base(struct igc_hw *hw)
{
s32 ret_val = 0;
ret_val = igc_read_mac_addr(hw);
return ret_val;
}
/** /**
* igc_power_down_phy_copper_base - Remove link during PHY power down * igc_power_down_phy_copper_base - Remove link during PHY power down
* @hw: pointer to the HW structure * @hw: pointer to the HW structure
...@@ -478,7 +465,7 @@ static struct igc_mac_operations igc_mac_ops_base = { ...@@ -478,7 +465,7 @@ static struct igc_mac_operations igc_mac_ops_base = {
.init_hw = igc_init_hw_base, .init_hw = igc_init_hw_base,
.check_for_link = igc_check_for_copper_link, .check_for_link = igc_check_for_copper_link,
.rar_set = igc_rar_set, .rar_set = igc_rar_set,
.read_mac_addr = igc_read_mac_addr_base, .read_mac_addr = igc_read_mac_addr,
.get_speed_and_duplex = igc_get_speed_and_duplex_copper, .get_speed_and_duplex = igc_get_speed_and_duplex_copper,
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册