]> git.baikalelectronics.ru Git - kernel.git/commit
igc: Fix static checker warning
authorSasha Neftin <sasha.neftin@intel.com>
Thu, 9 Jul 2020 07:34:16 +0000 (10:34 +0300)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 27 Jul 2020 15:49:32 +0000 (08:49 -0700)
commit62ba4a5f782f0211c8c0bc962c94a1eb48226150
treeffc160bbe052b11233997346a92c33c476cfecd6
parent8e3b4b376ea7d49ec774af28f8e6cb9816cce118
igc: Fix static checker warning

drivers/net/ethernet/intel/igc/igc_mac.c:424 igc_check_for_copper_link()
error: uninitialized symbol 'link'.
This patch come to fix this warning and initialize the 'link' symbol.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Fixes: 582bbd591f35 ("igc: Add initial LTR support")
Signed-off-by: Sasha Neftin <sasha.neftin@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/igc/igc_mac.c