* [PATCH] mac80211: minstrel_ht: remove unused variable 'mg'
@ 2021-02-19 9:57 Johannes Berg
2021-02-19 11:21 ` Felix Fietkau
0 siblings, 1 reply; 2+ messages in thread
From: Johannes Berg @ 2021-02-19 9:57 UTC (permalink / raw)
To: linux-wireless; +Cc: Johannes Berg, kernel test robot
From: Johannes Berg <johannes.berg@intel.com>
This probably came in through some refactoring and what is
now a call to minstrel_ht_group_min_rate_offset(), remove
the unused variable.
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
---
net/mac80211/rc80211_minstrel_ht.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/net/mac80211/rc80211_minstrel_ht.c b/net/mac80211/rc80211_minstrel_ht.c
index 2f44f4919789..ecad9b10984f 100644
--- a/net/mac80211/rc80211_minstrel_ht.c
+++ b/net/mac80211/rc80211_minstrel_ht.c
@@ -805,7 +805,6 @@ minstrel_ht_group_min_rate_offset(struct minstrel_ht_sta *mi, int group,
static u16
minstrel_ht_next_inc_rate(struct minstrel_ht_sta *mi, u32 fast_rate_dur)
{
- struct minstrel_mcs_group_data *mg;
u8 type = MINSTREL_SAMPLE_TYPE_INC;
int i, index = 0;
u8 group;
@@ -813,7 +812,6 @@ minstrel_ht_next_inc_rate(struct minstrel_ht_sta *mi, u32 fast_rate_dur)
group = mi->sample[type].sample_group;
for (i = 0; i < ARRAY_SIZE(minstrel_mcs_groups); i++) {
group = (group + 1) % ARRAY_SIZE(minstrel_mcs_groups);
- mg = &mi->groups[group];
index = minstrel_ht_group_min_rate_offset(mi, group,
fast_rate_dur);
--
2.26.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] mac80211: minstrel_ht: remove unused variable 'mg'
2021-02-19 9:57 [PATCH] mac80211: minstrel_ht: remove unused variable 'mg' Johannes Berg
@ 2021-02-19 11:21 ` Felix Fietkau
0 siblings, 0 replies; 2+ messages in thread
From: Felix Fietkau @ 2021-02-19 11:21 UTC (permalink / raw)
To: Johannes Berg, linux-wireless; +Cc: Johannes Berg, kernel test robot
On 2021-02-19 10:57, Johannes Berg wrote:
> From: Johannes Berg <johannes.berg@intel.com>
>
> This probably came in through some refactoring and what is
> now a call to minstrel_ht_group_min_rate_offset(), remove
> the unused variable.
>
> Reported-by: kernel test robot <lkp@intel.com>
> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Acked-by: Felix Fietkau <nbd@nbd.name>
- Felix
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-02-19 11:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-19 9:57 [PATCH] mac80211: minstrel_ht: remove unused variable 'mg' Johannes Berg
2021-02-19 11:21 ` Felix Fietkau
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.