mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 08:43:31 +00:00
igc: Remove unneeded check for copper media type
PHY of the i225 device support only copper mode. There is no point to check media type in the igc_power_up_link() method. 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>
This commit is contained in:
parent
a0beb3c1b1
commit
2b374e3738
1 changed files with 1 additions and 2 deletions
|
@ -115,8 +115,7 @@ static void igc_power_up_link(struct igc_adapter *adapter)
|
|||
{
|
||||
igc_reset_phy(&adapter->hw);
|
||||
|
||||
if (adapter->hw.phy.media_type == igc_media_type_copper)
|
||||
igc_power_up_phy_copper(&adapter->hw);
|
||||
igc_power_up_phy_copper(&adapter->hw);
|
||||
|
||||
igc_setup_link(&adapter->hw);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue