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 7d6a3bf..353af8f 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;
 }
 
 /**