mac80211: Remove unused initialization
authorMasashi Honma <masashi.honma@gmail.com>
Sat, 29 Sep 2018 22:30:45 +0000 (07:30 +0900)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 2 Oct 2018 07:56:30 +0000 (09:56 +0200)
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>
net/mac80211/rc80211_minstrel.c

index 07fb219327d656f83845793117b165aabd623ee6..fc6134c01a762ef26ba6b68dd99c51fa5baa9ef6 100644 (file)
@@ -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)