From: Abhijeet Kolekar Date: Mon, 30 Jun 2008 09:23:22 +0000 (+0800) Subject: iwlwifi: Remove unnecessary code X-Git-Tag: v2.6.27-rc1~969^2~224^2~12 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=e58942a2ed4386ea19bae4342320d569e025dded;p=linux-2.6-omap-h63xx.git iwlwifi: Remove unnecessary code Removed unnecessary goto. Signed-off-by: Abhijeet Kolekar Signed-off-by: Zhu Yi Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/iwlwifi/iwl-4965-rs.c b/drivers/net/wireless/iwlwifi/iwl-4965-rs.c index c2f21d79dfc..c7ebb3bf06f 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, lq_sta->ibss_sta_added = 1; rs_initialize_lq(priv, conf, sta); } - if (!lq_sta->ibss_sta_added) - goto done; } -done: if ((i < 0) || (i > IWL_RATE_COUNT)) { sel->rate_idx = rate_lowest_index(local, sband, sta); goto out;