]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbeff6774efa8b5ae6d9ae517838328485c64e56f
tree0b241a11c4434ecc4fc810a486f04d5b419260dd
parent735cafc9846b49e2ae110a1419e97990d3d27f70
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