From: Johannes Berg Date: Tue, 17 Dec 2013 10:34:25 +0000 (+0100) Subject: iwlwifi: mvm: rs: fix variable shadowing X-Git-Tag: upstream/snapshot3+hdmi~3572^2~3^2^2~5^2~47 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cf4ef65446443eb485afe9419ea82b2efbe582a7;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git iwlwifi: mvm: rs: fix variable shadowing Signed-off-by: Johannes Berg Reviewed-by: EyalX Shapira Signed-off-by: Emmanuel Grumbach --- diff --git a/drivers/net/wireless/iwlwifi/mvm/rs.c b/drivers/net/wireless/iwlwifi/mvm/rs.c index 1f06450..d6d28d7 100644 --- a/drivers/net/wireless/iwlwifi/mvm/rs.c +++ b/drivers/net/wireless/iwlwifi/mvm/rs.c @@ -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);