aboutsummaryrefslogtreecommitdiff
path: root/net/mac80211/rc80211_minstrel.c
diff options
context:
space:
mode:
authorMasashi Honma2018-09-30 07:30:45 +0900
committerJohannes Berg2018-10-02 09:56:30 +0200
commitc70616bd8a56a7ecb79c70b7454ce7f1909ff7e0 (patch)
tree161e3f48904cd9efae2340a1f37f84432092f4f7 /net/mac80211/rc80211_minstrel.c
parent5297c65c1d48a439c778c56edc6beedb486e4bbd (diff)
mac80211: Remove unused initialization
The variable j will be initialized at trailing step. Signed-off-by: Masashi Honma <masashi.honma@gmail.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/rc80211_minstrel.c')
-rw-r--r--net/mac80211/rc80211_minstrel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/rc80211_minstrel.c b/net/mac80211/rc80211_minstrel.c
index 07fb219327d6..fc6134c01a76 100644
--- a/net/mac80211/rc80211_minstrel.c
+++ b/net/mac80211/rc80211_minstrel.c
@@ -632,7 +632,7 @@ minstrel_init_cck_rates(struct minstrel_priv *mp)
if (!sband)
return;
- for (i = 0, j = 0; i < sband->n_bitrates; i++) {
+ for (i = 0; i < sband->n_bitrates; i++) {
struct ieee80211_rate *rate = &sband->bitrates[i];
if (rate->flags & IEEE80211_RATE_ERP_G)