diff mbox series

wifi: mac80211: remove extra shadowing variable

Message ID 20240131164903.e9746a5cfe0e.I30348fe77593057ac3fe8e2afa3d7a97de6d04d0@changeid
State New
Headers show
Series wifi: mac80211: remove extra shadowing variable | expand

Commit Message

Johannes Berg Jan. 31, 2024, 3:49 p.m. UTC
From: Johannes Berg <johannes.berg@intel.com>

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 <johannes.berg@intel.com>
---
 net/mac80211/rx.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

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,