]> git.baikalelectronics.ru Git - kernel.git/commit
e1000e: Fix error path in link detection
authorBenjamin Poirier <bpoirier@suse.com>
Fri, 21 Jul 2017 18:36:23 +0000 (11:36 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 10 Oct 2017 15:17:00 +0000 (08:17 -0700)
commitd80848337c7b43337246b33a4255b4f68a9555c5
treeb89a7dab618e4156719dc59851b70bab80b860f0
parente62582b4e88c7a0be6d3d7b8079aee743cc61f8e
e1000e: Fix error path in link detection

In case of error from e1e_rphy(), the loop will exit early and "success"
will be set to true erroneously.

Signed-off-by: Benjamin Poirier <bpoirier@suse.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/e1000e/phy.c