Skip to contentSkip to conversation

igc: Remove the 'igc_get_phy_id_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 2/2 igc: Remove the 'igc_get_phy_id_base' method

Remove the redundant 'igc_get_phy_id_base' method and use the 'igc_get_phy_id' method directly instead.

---
 drivers/net/ethernet/intel/igc/igc_base.c | 18 +-----------------
 1 file changed, 1 insertion(+), 17 deletions(-)
drivers/net/ethernet/intel/igc/igc_base.c +1 -17
index 51a667c16dea..fe9a9666c70f 100644
@@ -108,22 +108,6 @@ static s32 igc_reset_hw_base(struct igc_hw *hw)
 }
 
 /**
- * igc_get_phy_id_base - Retrieve PHY addr and id
- * @hw: pointer to the HW structure
- *
- * Retrieves the PHY address and ID for both PHY's which do and do not use
- * sgmi interface.
- */
-static s32 igc_get_phy_id_base(struct igc_hw *hw)
-{
-	s32  ret_val = 0;
-
-	ret_val = igc_get_phy_id(hw);
-
-	return ret_val;
-}
-
-/**
  * igc_init_nvm_params_base - Init NVM func ptrs.
  * @hw: pointer to the HW structure
  */
@@ -245,7 +229,7 @@ static s32 igc_init_phy_params_base(struct igc_hw *hw)
 		goto out;
 	}
 
-	ret_val = igc_get_phy_id_base(hw);
+	ret_val = igc_get_phy_id(hw);
 	if (ret_val)
 		return ret_val;
 
Signature · 1 line
2.11.0
#1 lore raw

PATCH 2/2 igc: Remove the 'igc_get_phy_id_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 2/2] igc: Remove the 'igc_get_phy_id_base' method

Quoted 8 lines

Remove the redundant 'igc_get_phy_id_base' method and use the 'igc_get_phy_id' method directly instead.

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