https://github.com/torvalds/linux
Revision 89d351c046c287f293b4b2fda1d76c4df44b95ce authored by Jesper Juhl on 01 August 2012, 05:41:25 UTC, committed by Peter P Waskiewicz Jr on 04 August 2012, 09:44:29 UTC
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>
1 parent 925b11f
History
Tip revision: 89d351c046c287f293b4b2fda1d76c4df44b95ce authored by Jesper Juhl on 01 August 2012, 05:41:25 UTC
igb: correct hardware type (i210/i211) check in igb_loopback_test()
Tip revision: 89d351c

back to top