igc: Fix code redundancy
authorSasha Neftin <sasha.neftin@intel.com>
Tue, 18 Dec 2018 09:29:54 +0000 (11:29 +0200)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 6 Feb 2019 00:08:54 +0000 (16:08 -0800)
commita8890c38abb2f1706672cafb4094d3726430b335
tree212fd3331aa1a844415cde03998255131a4a6e2c
parentfacd86390be23f0a956136a63d415d90f300fb88
igc: Fix code redundancy

Remove redundant igc_check_for_link_base code and replace it with
an igc_check_for_copper_link method.
Fix duplication of IGC_ADVTXD_PAYLEN_SHIFT mask declaration.
Remove obsolete IGC_SCVPC register definition.

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>
drivers/net/ethernet/intel/igc/igc_base.c
drivers/net/ethernet/intel/igc/igc_base.h
drivers/net/ethernet/intel/igc/igc_regs.h