diff options
author | Bruce Allan <bruce.w.allan@intel.com> | 2009-11-20 18:28:37 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-11-21 14:34:30 -0500 |
commit | a708dd88a014a8fd78713adbd19bc61046eaac7f (patch) | |
tree | 3118d050dd2f7f6a9040fee38e1d4397295cd304 /drivers/net/e1000e | |
parent | 9b724613c91ce60806ffc689f5032ff258644c6c (diff) |
e1000e: cosmetic - group local variables of the same type
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')
-rw-r--r-- | drivers/net/e1000e/82571.c | 11 | ||||
-rw-r--r-- | drivers/net/e1000e/es2lan.c | 6 | ||||
-rw-r--r-- | drivers/net/e1000e/ich8lan.c | 8 |
3 files changed, 9 insertions, 16 deletions
diff --git a/drivers/net/e1000e/82571.c b/drivers/net/e1000e/82571.c index 474f4e419d20..62bbc6e0a76a 100644 --- a/drivers/net/e1000e/82571.c +++ b/drivers/net/e1000e/82571.c | |||
@@ -693,8 +693,7 @@ static s32 e1000_write_nvm_eewr_82571(struct e1000_hw *hw, u16 offset, | |||
693 | u16 words, u16 *data) | 693 | u16 words, u16 *data) |
694 | { | 694 | { |
695 | struct e1000_nvm_info *nvm = &hw->nvm; | 695 | struct e1000_nvm_info *nvm = &hw->nvm; |
696 | u32 i; | 696 | u32 i, eewr = 0; |
697 | u32 eewr = 0; | ||
698 | s32 ret_val = 0; | 697 | s32 ret_val = 0; |
699 | 698 | ||
700 | /* | 699 | /* |
@@ -829,10 +828,7 @@ static s32 e1000_set_d0_lplu_state_82571(struct e1000_hw *hw, bool active) | |||
829 | **/ | 828 | **/ |
830 | static s32 e1000_reset_hw_82571(struct e1000_hw *hw) | 829 | static s32 e1000_reset_hw_82571(struct e1000_hw *hw) |
831 | { | 830 | { |
832 | u32 ctrl; | 831 | u32 ctrl, extcnf_ctrl, ctrl_ext, icr; |
833 | u32 extcnf_ctrl; | ||
834 | u32 ctrl_ext; | ||
835 | u32 icr; | ||
836 | s32 ret_val; | 832 | s32 ret_val; |
837 | u16 i = 0; | 833 | u16 i = 0; |
838 | 834 | ||
@@ -941,8 +937,7 @@ static s32 e1000_init_hw_82571(struct e1000_hw *hw) | |||
941 | struct e1000_mac_info *mac = &hw->mac; | 937 | struct e1000_mac_info *mac = &hw->mac; |
942 | u32 reg_data; | 938 | u32 reg_data; |
943 | s32 ret_val; | 939 | s32 ret_val; |
944 | u16 i; | 940 | u16 i, rar_count = mac->rar_entry_count; |
945 | u16 rar_count = mac->rar_entry_count; | ||
946 | 941 | ||
947 | e1000_initialize_hw_bits_82571(hw); | 942 | e1000_initialize_hw_bits_82571(hw); |
948 | 943 | ||
diff --git a/drivers/net/e1000e/es2lan.c b/drivers/net/e1000e/es2lan.c index 6ba1228836e7..e50579859e06 100644 --- a/drivers/net/e1000e/es2lan.c +++ b/drivers/net/e1000e/es2lan.c | |||
@@ -695,8 +695,7 @@ static s32 e1000_get_cable_length_80003es2lan(struct e1000_hw *hw) | |||
695 | { | 695 | { |
696 | struct e1000_phy_info *phy = &hw->phy; | 696 | struct e1000_phy_info *phy = &hw->phy; |
697 | s32 ret_val; | 697 | s32 ret_val; |
698 | u16 phy_data; | 698 | u16 phy_data, index; |
699 | u16 index; | ||
700 | 699 | ||
701 | ret_val = e1e_rphy(hw, GG82563_PHY_DSP_DISTANCE, &phy_data); | 700 | ret_val = e1e_rphy(hw, GG82563_PHY_DSP_DISTANCE, &phy_data); |
702 | if (ret_val) | 701 | if (ret_val) |
@@ -746,8 +745,7 @@ static s32 e1000_get_link_up_info_80003es2lan(struct e1000_hw *hw, u16 *speed, | |||
746 | **/ | 745 | **/ |
747 | static s32 e1000_reset_hw_80003es2lan(struct e1000_hw *hw) | 746 | static s32 e1000_reset_hw_80003es2lan(struct e1000_hw *hw) |
748 | { | 747 | { |
749 | u32 ctrl; | 748 | u32 ctrl, icr; |
750 | u32 icr; | ||
751 | s32 ret_val; | 749 | s32 ret_val; |
752 | 750 | ||
753 | /* | 751 | /* |
diff --git a/drivers/net/e1000e/ich8lan.c b/drivers/net/e1000e/ich8lan.c index f991b14a98d3..568bb259c6fd 100644 --- a/drivers/net/e1000e/ich8lan.c +++ b/drivers/net/e1000e/ich8lan.c | |||
@@ -706,7 +706,9 @@ static void e1000_release_swflag_ich8lan(struct e1000_hw *hw) | |||
706 | **/ | 706 | **/ |
707 | static bool e1000_check_mng_mode_ich8lan(struct e1000_hw *hw) | 707 | static bool e1000_check_mng_mode_ich8lan(struct e1000_hw *hw) |
708 | { | 708 | { |
709 | u32 fwsm = er32(FWSM); | 709 | u32 fwsm; |
710 | |||
711 | fwsm = er32(FWSM); | ||
710 | 712 | ||
711 | return (fwsm & E1000_FWSM_MODE_MASK) == | 713 | return (fwsm & E1000_FWSM_MODE_MASK) == |
712 | (E1000_ICH_MNG_IAMT_MODE << E1000_FWSM_MODE_SHIFT); | 714 | (E1000_ICH_MNG_IAMT_MODE << E1000_FWSM_MODE_SHIFT); |
@@ -2349,9 +2351,7 @@ static s32 e1000_erase_flash_bank_ich8lan(struct e1000_hw *hw, u32 bank) | |||
2349 | u32 flash_bank_size = nvm->flash_bank_size * 2; | 2351 | u32 flash_bank_size = nvm->flash_bank_size * 2; |
2350 | s32 ret_val; | 2352 | s32 ret_val; |
2351 | s32 count = 0; | 2353 | s32 count = 0; |
2352 | s32 iteration; | 2354 | s32 j, iteration, sector_size; |
2353 | s32 sector_size; | ||
2354 | s32 j; | ||
2355 | 2355 | ||
2356 | hsfsts.regval = er16flash(ICH_FLASH_HSFSTS); | 2356 | hsfsts.regval = er16flash(ICH_FLASH_HSFSTS); |
2357 | 2357 | ||