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>
This commit is contained in:
committed by
John W. Linville
parent
4977929304
commit
e58942a2ed
@@ -2133,11 +2133,8 @@ static void rs_get_rate(void *priv_rate, struct net_device *dev,
|
|||||||
lq_sta->ibss_sta_added = 1;
|
lq_sta->ibss_sta_added = 1;
|
||||||
rs_initialize_lq(priv, conf, sta);
|
rs_initialize_lq(priv, conf, sta);
|
||||||
}
|
}
|
||||||
if (!lq_sta->ibss_sta_added)
|
|
||||||
goto done;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
done:
|
|
||||||
if ((i < 0) || (i > IWL_RATE_COUNT)) {
|
if ((i < 0) || (i > IWL_RATE_COUNT)) {
|
||||||
sel->rate_idx = rate_lowest_index(local, sband, sta);
|
sel->rate_idx = rate_lowest_index(local, sband, sta);
|
||||||
goto out;
|
goto out;
|
||||||
|
Reference in New Issue
Block a user