2024-01-31 15:49:48

by Johannes Berg

[permalink] [raw]
Subject: [PATCH] wifi: mac80211: remove extra shadowing variable

From: Johannes Berg <[email protected]>

Not sure how this happened or how nothing complained, but
this variable already exists in the outer function scope
with the same value (and the SKB isn't changed either.)
Remove the extra one.

Signed-off-by: Johannes Berg <[email protected]>
---
net/mac80211/rx.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c
index 1ee00547c0a4..9902ea69af0a 100644
--- a/net/mac80211/rx.c
+++ b/net/mac80211/rx.c
@@ -5231,7 +5231,6 @@ static void __ieee80211_rx_handle_packet(struct ieee80211_hw *hw,
*/

if (!status->link_valid && pubsta->mlo) {
- struct ieee80211_hdr *hdr = (void *)skb->data;
struct link_sta_info *link_sta;

link_sta = link_sta_info_get_bss(rx.sdata,
--
2.43.0