Skip to content

Commit 937d6ae

Browse files
Miriam-Racheljmberg-intel
authored andcommitted
wifi: mac80211: reduce the scope of link_id
Reduce the scope of the link_id variable in sta_set_sinfo to the 'if' scope. Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Johannes Berg <[email protected]>
1 parent d358795 commit 937d6ae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

net/mac80211/sta_info.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2962,7 +2962,7 @@ void sta_set_sinfo(struct sta_info *sta, struct station_info *sinfo,
29622962
struct ieee80211_sub_if_data *sdata = sta->sdata;
29632963
struct ieee80211_local *local = sdata->local;
29642964
u32 thr = 0;
2965-
int i, ac, cpu, link_id;
2965+
int i, ac, cpu;
29662966
struct ieee80211_sta_rx_stats *last_rxstats;
29672967

29682968
last_rxstats = sta_get_last_rx_stats(sta, -1);
@@ -3204,6 +3204,7 @@ void sta_set_sinfo(struct sta_info *sta, struct station_info *sinfo,
32043204
if (sta->sta.valid_links) {
32053205
struct ieee80211_link_data *link;
32063206
struct link_sta_info *link_sta;
3207+
int link_id;
32073208

32083209
ether_addr_copy(sinfo->mld_addr, sta->addr);
32093210
for_each_valid_link(sinfo, link_id) {

0 commit comments

Comments
 (0)