Skip to contentSkip to conversation

igc: Remove the 'igc_read_mac_addr_base' method

PATCH New Sasha Neftin 2 participants 2 messages Jan 15, 2019 – Feb 1, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 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.

---
 drivers/net/ethernet/intel/igc/igc_base.c | 15 +--------------
 1 file changed, 1 insertion(+), 14 deletions(-)
drivers/net/ethernet/intel/igc/igc_base.c +1 -14
index a31ec1682090..51a667c16dea 100644
@@ -372,19 +372,6 @@ static s32 igc_init_hw_base(struct igc_hw *hw)
 }
 
 /**
- * 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
  * @hw: pointer to the HW structure
  *
@@ -478,7 +465,7 @@ static struct igc_mac_operations igc_mac_ops_base = {
 	.init_hw		= igc_init_hw_base,
 	.check_for_link		= igc_check_for_copper_link,
 	.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,
 };
 
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/2 igc: Remove the 'igc_read_mac_addr_base' method

Quoted 7 lines

From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On Behalf Of Sasha Neftin
Sent: Tuesday, January 15, 2019 5:21 AM
To: intel-wired-lan at lists.osuosl.org
Subject: [Intel-wired-lan] [PATCH 1/2] igc: Remove the 'igc_read_mac_addr_base' method

Quoted 7 lines

Remove the redundant 'igc_read_mac_addr_base' method and use the 'igc_read_mac_addr' method directly instead.

---
 drivers/net/ethernet/intel/igc/igc_base.c | 15 +--------------
 1 file changed, 1 insertion(+), 14 deletions(-)