diff options
author | Bruce Allan <bruce.w.allan@intel.com> | 2009-11-20 18:27:21 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-11-21 14:34:21 -0500 |
commit | 99673d9b5d48c81f2e9fe094c0d9e42815c60b3f (patch) | |
tree | e21e8f5149bb8a08497d97c3f0691dc81dbf2ac3 /drivers/net/e1000e/ich8lan.c | |
parent | 3d5e33c9783d3e911e9aef0339663e887044f0df (diff) |
e1000e: cleanup functions that clear hardware statistics
The e1000_clear_hw_cntrs_*() functions read the registers to clear them.
There is no reason to save the register contents so the temp variable can
be removed.
Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/e1000e/ich8lan.c')
-rw-r--r-- | drivers/net/e1000e/ich8lan.c | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/drivers/net/e1000e/ich8lan.c b/drivers/net/e1000e/ich8lan.c index f8ee0f29d237..2c1d08e04436 100644 --- a/drivers/net/e1000e/ich8lan.c +++ b/drivers/net/e1000e/ich8lan.c | |||
@@ -3402,24 +3402,23 @@ static s32 e1000_get_cfg_done_ich8lan(struct e1000_hw *hw) | |||
3402 | **/ | 3402 | **/ |
3403 | static void e1000_clear_hw_cntrs_ich8lan(struct e1000_hw *hw) | 3403 | static void e1000_clear_hw_cntrs_ich8lan(struct e1000_hw *hw) |
3404 | { | 3404 | { |
3405 | u32 temp; | ||
3406 | u16 phy_data; | 3405 | u16 phy_data; |
3407 | 3406 | ||
3408 | e1000e_clear_hw_cntrs_base(hw); | 3407 | e1000e_clear_hw_cntrs_base(hw); |
3409 | 3408 | ||
3410 | temp = er32(ALGNERRC); | 3409 | er32(ALGNERRC); |
3411 | temp = er32(RXERRC); | 3410 | er32(RXERRC); |
3412 | temp = er32(TNCRS); | 3411 | er32(TNCRS); |
3413 | temp = er32(CEXTERR); | 3412 | er32(CEXTERR); |
3414 | temp = er32(TSCTC); | 3413 | er32(TSCTC); |
3415 | temp = er32(TSCTFC); | 3414 | er32(TSCTFC); |
3416 | 3415 | ||
3417 | temp = er32(MGTPRC); | 3416 | er32(MGTPRC); |
3418 | temp = er32(MGTPDC); | 3417 | er32(MGTPDC); |
3419 | temp = er32(MGTPTC); | 3418 | er32(MGTPTC); |
3420 | 3419 | ||
3421 | temp = er32(IAC); | 3420 | er32(IAC); |
3422 | temp = er32(ICRXOC); | 3421 | er32(ICRXOC); |
3423 | 3422 | ||
3424 | /* Clear PHY statistics registers */ | 3423 | /* Clear PHY statistics registers */ |
3425 | if ((hw->phy.type == e1000_phy_82578) || | 3424 | if ((hw->phy.type == e1000_phy_82578) || |