From: Wey-Yi Guy Date: Mon, 10 Oct 2011 14:26:58 +0000 (-0700) Subject: iwlagn: remove un-necessary step X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c3322b30fe37db53feb4f60ccb1eb5175af2d2e0;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git iwlagn: remove un-necessary step No need to copy twice. Signed-off-by: Wey-Yi Guy Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c index 7d6a3bf64950..353af8f995b0 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c @@ -2666,8 +2666,7 @@ lq_update: out: tbl->current_rate = rate_n_flags_from_tbl(priv, tbl, index, is_green); - i = index; - lq_sta->last_txrate_idx = i; + lq_sta->last_txrate_idx = index; } /**