]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
iwlwifi: mvm: rs: fix variable shadowing
authorJohannes Berg <johannes.berg@intel.com>
Tue, 17 Dec 2013 10:34:25 +0000 (11:34 +0100)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 17 Dec 2013 20:32:57 +0000 (22:32 +0200)
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Reviewed-by: EyalX Shapira <eyal@wizery.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/rs.c

index 1f06450007bab36ab272b2350dd6e443b2bd74ff..d6d28d7b442b2373ef2660f8ae5b9c05c4a34508 100644 (file)
@@ -2718,12 +2718,10 @@ static ssize_t rs_sta_dbgfs_scale_table_read(struct file *file,
                        lq_sta->lq.initial_rate_index[3]);
 
        for (i = 0; i < LINK_QUAL_MAX_RETRY_NUM; i++) {
-               u32 rate = le32_to_cpu(lq_sta->lq.rs_table[i]);
-               desc += sprintf(buff+desc,
-                               " rate[%d] 0x%X ",
-                               i, rate);
+               u32 r = le32_to_cpu(lq_sta->lq.rs_table[i]);
 
-               desc += rs_pretty_print_rate(buff+desc, rate);
+               desc += sprintf(buff+desc, " rate[%d] 0x%X ", i, r);
+               desc += rs_pretty_print_rate(buff+desc, r);
        }
 
        ret = simple_read_from_buffer(user_buf, count, ppos, buff, desc);