wifi: mac80211: remove extra shadowing variable
authorJohannes Berg <johannes.berg@intel.com>
Wed, 31 Jan 2024 15:49:04 +0000 (16:49 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 8 Feb 2024 11:50:12 +0000 (12:50 +0100)
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

index 615795c..76798e8 100644 (file)
@@ -5214,7 +5214,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,