aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/igc/igc_base.c
diff options
context:
space:
mode:
authorSasha Neftin <sasha.neftin@intel.com>2019-01-15 08:21:09 -0500
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2019-02-05 20:14:38 -0500
commit109f599663b9d24f0045b1f4f576896c136942ec (patch)
treef9dac7c0352d07269c87ab762ea87d1db07903e2 /drivers/net/ethernet/intel/igc/igc_base.c
parent0f9e980bf5ee1a97e2e401c846b2af989eb21c61 (diff)
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: Sasha Neftin <sasha.neftin@intel.com> Tested-by: Aaron Brown <aaron.f.brown@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc_base.c')
-rw-r--r--drivers/net/ethernet/intel/igc/igc_base.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/drivers/net/ethernet/intel/igc/igc_base.c b/drivers/net/ethernet/intel/igc/igc_base.c
index a31ec1682090..51a667c16dea 100644
--- a/drivers/net/ethernet/intel/igc/igc_base.c
+++ b/drivers/net/ethernet/intel/igc/igc_base.c
@@ -372,19 +372,6 @@ static s32 igc_init_hw_base(struct igc_hw *hw)
372} 372}
373 373
374/** 374/**
375 * igc_read_mac_addr_base - Read device MAC address
376 * @hw: pointer to the HW structure
377 */
378static s32 igc_read_mac_addr_base(struct igc_hw *hw)
379{
380 s32 ret_val = 0;
381
382 ret_val = igc_read_mac_addr(hw);
383
384 return ret_val;
385}
386
387/**
388 * igc_power_down_phy_copper_base - Remove link during PHY power down 375 * igc_power_down_phy_copper_base - Remove link during PHY power down
389 * @hw: pointer to the HW structure 376 * @hw: pointer to the HW structure
390 * 377 *
@@ -478,7 +465,7 @@ static struct igc_mac_operations igc_mac_ops_base = {
478 .init_hw = igc_init_hw_base, 465 .init_hw = igc_init_hw_base,
479 .check_for_link = igc_check_for_copper_link, 466 .check_for_link = igc_check_for_copper_link,
480 .rar_set = igc_rar_set, 467 .rar_set = igc_rar_set,
481 .read_mac_addr = igc_read_mac_addr_base, 468 .read_mac_addr = igc_read_mac_addr,
482 .get_speed_and_duplex = igc_get_speed_and_duplex_copper, 469 .get_speed_and_duplex = igc_get_speed_and_duplex_copper,
483}; 470};
484 471