igb: correct hardware type (i210/i211) check in igb_loopback_test()
authorJesper Juhl <jj@chaosbits.net>
Wed, 1 Aug 2012 05:41:25 +0000 (05:41 +0000)
committerPeter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Sat, 4 Aug 2012 09:44:29 +0000 (02:44 -0700)
commit89d351c046c287f293b4b2fda1d76c4df44b95ce
treec9858bc8127ce62ce182b53ede67a2b055fc657b
parent925b11f706642732ce2ae53b0f0d3fd54adc5075
igb: correct hardware type (i210/i211) check in igb_loopback_test()

In the original code
...
  if ((adapter->hw.mac.type == e1000_i210)
|| (adapter->hw.mac.type == e1000_i210)) {
...
the second check of 'adapter->hw.mac.type' is pointless since it tests
for the exact same value as the first.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Acked-by: Carolyn Wyborny <carolyn.wyborny@intel.com>
Tested-by: Jeff Pieper <jeffrey.e.pieper@intel.com>
Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
drivers/net/ethernet/intel/igb/igb_ethtool.c