Forráskód Böngészése

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>
Masashi Honma 6 éve
szülő
commit
c70616bd8a
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      net/mac80211/rc80211_minstrel.c

+ 1 - 1
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)