projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5297c65
)
mac80211: Remove unused initialization
author
Masashi Honma
<masashi.honma@gmail.com>
Sat, 29 Sep 2018 22:30:45 +0000
(07:30 +0900)
committer
Johannes 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
patch
|
blob
|
history
diff --git
a/net/mac80211/rc80211_minstrel.c
b/net/mac80211/rc80211_minstrel.c
index 07fb219327d656f83845793117b165aabd623ee6..fc6134c01a762ef26ba6b68dd99c51fa5baa9ef6 100644
(file)
--- 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)