aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi
diff options
context:
space:
mode:
authorAbhijeet Kolekar <abhijeet.kolekar@intel.com>2008-06-30 05:23:22 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-06-30 17:37:43 -0400
commite58942a2ed4386ea19bae4342320d569e025dded (patch)
tree20a84807b797b829979a490d7eb5e2344b4d0820 /drivers/net/wireless/iwlwifi
parent4977929304306b1b0712f9b99e3cbf95f75c31ea (diff)
iwlwifi: Remove unnecessary code
Removed unnecessary goto. Signed-off-by: Abhijeet Kolekar <abhijeet.kolekar@intel.com> Signed-off-by: Zhu Yi <yi.zhu@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-4965-rs.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965-rs.c b/drivers/net/wireless/iwlwifi/iwl-4965-rs.c
index c2f21d79dfc2..c7ebb3bf06f5 100644
--- a/drivers/net/wireless/iwlwifi/iwl-4965-rs.c
+++ b/drivers/net/wireless/iwlwifi/iwl-4965-rs.c
@@ -2133,11 +2133,8 @@ static void rs_get_rate(void *priv_rate, struct net_device *dev,
2133 lq_sta->ibss_sta_added = 1; 2133 lq_sta->ibss_sta_added = 1;
2134 rs_initialize_lq(priv, conf, sta); 2134 rs_initialize_lq(priv, conf, sta);
2135 } 2135 }
2136 if (!lq_sta->ibss_sta_added)
2137 goto done;
2138 } 2136 }
2139 2137
2140done:
2141 if ((i < 0) || (i > IWL_RATE_COUNT)) { 2138 if ((i < 0) || (i > IWL_RATE_COUNT)) {
2142 sel->rate_idx = rate_lowest_index(local, sband, sta); 2139 sel->rate_idx = rate_lowest_index(local, sband, sta);
2143 goto out; 2140 goto out;