igc: Remove phy->type checking
authorSasha Neftin <sasha.neftin@intel.com>
Sat, 10 Jul 2021 17:57:50 +0000 (20:57 +0300)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 20 Jul 2021 23:11:36 +0000 (16:11 -0700)
commit47bca7de6a4fb8dcb564c7ca14d885c91ed19e03
tree0b241a11c4434ecc4fc810a486f04d5b419260dd
parent7c496de538eebd8212dc2a3c9a468386b264d0d4
igc: Remove phy->type checking

i225 devices have only one phy->type: copper. There is no point checking
phy->type during the igc_has_link method from the watchdog that
invoked every 2 seconds.
This patch comes to clean up these pointless checkings.

Signed-off-by: Sasha Neftin <sasha.neftin@intel.com>
Tested-by: Dvora Fuxbrumer <dvorax.fuxbrumer@linux.intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/igc/igc_main.c