diff options
author | Alexander Duyck <alexander.h.duyck@intel.com> | 2009-07-23 14:07:58 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-07-26 12:46:44 -0400 |
commit | f3e7841ca3608db6e0207cd8af5561f065882517 (patch) | |
tree | 056c06eae848253de8c09d5afebfaa59478c91b8 /drivers/net/igb | |
parent | 099e1cb700da6359b784ac7fb65099091b7b961e (diff) |
igb: change configure_pcs_link to void since it always returns 0
Since igb_configure_pcs_link always returns 0 there isn't really much point
to checking for the result so it is best just to change this to a void so
we can properly ignore the return result.
Signed-off-by: Alexander Duyck <alexander.h.duyck@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/igb')
-rw-r--r-- | drivers/net/igb/e1000_82575.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/drivers/net/igb/e1000_82575.c b/drivers/net/igb/e1000_82575.c index fa4a76299e00..f946bed66c71 100644 --- a/drivers/net/igb/e1000_82575.c +++ b/drivers/net/igb/e1000_82575.c | |||
@@ -53,7 +53,7 @@ static s32 igb_setup_fiber_serdes_link_82575(struct e1000_hw *); | |||
53 | static s32 igb_write_phy_reg_sgmii_82575(struct e1000_hw *, u32, u16); | 53 | static s32 igb_write_phy_reg_sgmii_82575(struct e1000_hw *, u32, u16); |
54 | static void igb_clear_hw_cntrs_82575(struct e1000_hw *); | 54 | static void igb_clear_hw_cntrs_82575(struct e1000_hw *); |
55 | static s32 igb_acquire_swfw_sync_82575(struct e1000_hw *, u16); | 55 | static s32 igb_acquire_swfw_sync_82575(struct e1000_hw *, u16); |
56 | static s32 igb_configure_pcs_link_82575(struct e1000_hw *); | 56 | static void igb_configure_pcs_link_82575(struct e1000_hw *); |
57 | static s32 igb_get_pcs_speed_and_duplex_82575(struct e1000_hw *, u16 *, | 57 | static s32 igb_get_pcs_speed_and_duplex_82575(struct e1000_hw *, u16 *, |
58 | u16 *); | 58 | u16 *); |
59 | static s32 igb_get_phy_id_82575(struct e1000_hw *); | 59 | static s32 igb_get_phy_id_82575(struct e1000_hw *); |
@@ -1050,9 +1050,7 @@ static s32 igb_setup_copper_link_82575(struct e1000_hw *hw) | |||
1050 | } | 1050 | } |
1051 | } | 1051 | } |
1052 | 1052 | ||
1053 | ret_val = igb_configure_pcs_link_82575(hw); | 1053 | igb_configure_pcs_link_82575(hw); |
1054 | if (ret_val) | ||
1055 | goto out; | ||
1056 | 1054 | ||
1057 | /* | 1055 | /* |
1058 | * Check link status. Wait up to 100 microseconds for link to become | 1056 | * Check link status. Wait up to 100 microseconds for link to become |
@@ -1161,14 +1159,14 @@ static s32 igb_setup_fiber_serdes_link_82575(struct e1000_hw *hw) | |||
1161 | * independent interface (sgmii) is being used. Configures the link | 1159 | * independent interface (sgmii) is being used. Configures the link |
1162 | * for auto-negotiation or forces speed/duplex. | 1160 | * for auto-negotiation or forces speed/duplex. |
1163 | **/ | 1161 | **/ |
1164 | static s32 igb_configure_pcs_link_82575(struct e1000_hw *hw) | 1162 | static void igb_configure_pcs_link_82575(struct e1000_hw *hw) |
1165 | { | 1163 | { |
1166 | struct e1000_mac_info *mac = &hw->mac; | 1164 | struct e1000_mac_info *mac = &hw->mac; |
1167 | u32 reg = 0; | 1165 | u32 reg = 0; |
1168 | 1166 | ||
1169 | if (hw->phy.media_type != e1000_media_type_copper || | 1167 | if (hw->phy.media_type != e1000_media_type_copper || |
1170 | !(igb_sgmii_active_82575(hw))) | 1168 | !(igb_sgmii_active_82575(hw))) |
1171 | goto out; | 1169 | return; |
1172 | 1170 | ||
1173 | /* For SGMII, we need to issue a PCS autoneg restart */ | 1171 | /* For SGMII, we need to issue a PCS autoneg restart */ |
1174 | reg = rd32(E1000_PCS_LCTL); | 1172 | reg = rd32(E1000_PCS_LCTL); |
@@ -1211,9 +1209,6 @@ static s32 igb_configure_pcs_link_82575(struct e1000_hw *hw) | |||
1211 | reg); | 1209 | reg); |
1212 | } | 1210 | } |
1213 | wr32(E1000_PCS_LCTL, reg); | 1211 | wr32(E1000_PCS_LCTL, reg); |
1214 | |||
1215 | out: | ||
1216 | return 0; | ||
1217 | } | 1212 | } |
1218 | 1213 | ||
1219 | /** | 1214 | /** |