iwlagn: remove un-necessary step
authorWey-Yi Guy <wey-yi.w.guy@intel.com>
Mon, 10 Oct 2011 14:26:58 +0000 (07:26 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 14 Oct 2011 18:48:10 +0000 (14:48 -0400)
No need to copy twice.

Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-agn-rs.c

index 7d6a3bf6495097e632a637800de5b4d1cc3e195c..353af8f995b0f8c3999e76d70a8e510f8eba3336 100644 (file)
@@ -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;
 }
 
 /**