From: Johannes Berg Date: Wed, 31 Jan 2024 15:49:04 +0000 (+0100) Subject: wifi: mac80211: remove extra shadowing variable X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=efa2cce6e272b36c7f9687385ef4fd538cc3bf51;p=linux.git wifi: mac80211: remove extra shadowing variable 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 --- diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c index 615795c4b0526..76798e8057f79 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c @@ -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,