diff options
author | Bruce Allan <bruce.w.allan@intel.com> | 2013-01-05 00:08:37 -0500 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2013-01-27 05:15:48 -0500 |
commit | 70806a7fd1ae8942675bb2d415899e9e64440505 (patch) | |
tree | c49ab01f3a85c8fa2ccbd1cb4ac0961b62bcd298 /drivers/net/ethernet/intel/e1000e/ethtool.c | |
parent | 7dbbe5d5a5073d590790007d5b98d7fd51fd2ff5 (diff) |
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>
Diffstat (limited to 'drivers/net/ethernet/intel/e1000e/ethtool.c')
-rw-r--r-- | drivers/net/ethernet/intel/e1000e/ethtool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/e1000e/ethtool.c b/drivers/net/ethernet/intel/e1000e/ethtool.c index 4262b4d00609..6ab949d0b39b 100644 --- a/drivers/net/ethernet/intel/e1000e/ethtool.c +++ b/drivers/net/ethernet/intel/e1000e/ethtool.c | |||
@@ -1405,7 +1405,7 @@ static int e1000_set_82571_fiber_loopback(struct e1000_adapter *adapter) | |||
1405 | { | 1405 | { |
1406 | struct e1000_hw *hw = &adapter->hw; | 1406 | struct e1000_hw *hw = &adapter->hw; |
1407 | u32 ctrl = er32(CTRL); | 1407 | u32 ctrl = er32(CTRL); |
1408 | int link = 0; | 1408 | int link; |
1409 | 1409 | ||
1410 | /* special requirements for 82571/82572 fiber adapters */ | 1410 | /* special requirements for 82571/82572 fiber adapters */ |
1411 | 1411 | ||