From: Johannes Berg Date: Fri, 13 May 2022 15:46:24 +0000 (+0200) Subject: mac80211: remove useless bssid copy X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=16d0364c722a246933ec4b39cbd5d17d7d4fe758;p=linux.git mac80211: remove useless bssid copy We don't need to copy this locally, we now only use the variable to print before doing other things. Signed-off-by: Johannes Berg --- diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 116d7c524a44f..c45eebce72f06 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@ -4734,11 +4734,9 @@ void ieee80211_sta_work(struct ieee80211_sub_if_data *sdata) if (ifmgd->flags & IEEE80211_STA_CONNECTION_POLL && ifmgd->associated) { - u8 bssid[ETH_ALEN]; + u8 *bssid = ifmgd->bssid; int max_tries; - memcpy(bssid, ifmgd->bssid, ETH_ALEN); - if (ieee80211_hw_check(&local->hw, REPORTS_TX_ACK_STATUS)) max_tries = max_nullfunc_tries; else