Skip to content

Commit

Permalink
igc: Remove the 'igc_get_phy_id_base' method
Browse files Browse the repository at this point in the history
Remove the redundant 'igc_get_phy_id_base' method and use
the 'igc_get_phy_id' 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>
  • Loading branch information
Sasha Neftin authored and Jeff Kirsher committed Feb 6, 2019
1 parent 109f599 commit 200a1a1
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions drivers/net/ethernet/intel/igc/igc_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,22 +107,6 @@ static s32 igc_reset_hw_base(struct igc_hw *hw)
return ret_val;
}

/**
* 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
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 200a1a1

Please sign in to comment.