From c70616bd8a56a7ecb79c70b7454ce7f1909ff7e0 Mon Sep 17 00:00:00 2001 From: Masashi Honma Date: Sun, 30 Sep 2018 07:30:45 +0900 Subject: [PATCH] mac80211: Remove unused initialization The variable j will be initialized at trailing step. Signed-off-by: Masashi Honma Signed-off-by: Johannes Berg --- net/mac80211/rc80211_minstrel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.45.2