e1000e: cleanup: do not assign a variable a value when not necessary
authorBruce Allan <bruce.w.allan@intel.com>
Sat, 5 Jan 2013 05:08:37 +0000 (05:08 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sun, 27 Jan 2013 10:15:48 +0000 (02:15 -0800)
commit70806a7fd1ae8942675bb2d415899e9e64440505
treec49ab01f3a85c8fa2ccbd1cb4ac0961b62bcd298
parent7dbbe5d5a5073d590790007d5b98d7fd51fd2ff5
e1000e: cleanup: do not assign a variable a value when not necessary

Static analysis with cppcheck has shown a few instances of a variable
being reassigned a value before the old one has been used.  None of these
ever require the old value to be used so remove the old values.

Signed-off-by: Bruce Allan <bruce.w.allan@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/e1000e/80003es2lan.c
drivers/net/ethernet/intel/e1000e/82571.c
drivers/net/ethernet/intel/e1000e/ethtool.c
drivers/net/ethernet/intel/e1000e/ich8lan.c
drivers/net/ethernet/intel/e1000e/mac.c
drivers/net/ethernet/intel/e1000e/netdev.c
drivers/net/ethernet/intel/e1000e/phy.c