From patchwork Fri May 13 15:46:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johannes Berg X-Patchwork-Id: 12849018 X-Patchwork-Delegate: johannes@sipsolutions.net Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 06D30C433FE for ; Fri, 13 May 2022 15:46:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378980AbiEMPqe (ORCPT ); Fri, 13 May 2022 11:46:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378538AbiEMPqb (ORCPT ); Fri, 13 May 2022 11:46:31 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE2877890D for ; Fri, 13 May 2022 08:46:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Content-Type:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=KVL3igQkNKBiZlNHb0ywwgObE0JV9FXtyZNUOcsrbQY=; t=1652456789; x=1653666389; b=VZpCA28youg52JobXx7Sx3ci/UIpecV2ktKJXOymbogvYYh CQoA7jUA0uTWVvBN1kQRmnyBwEk4ygFgk10c7mDgoLPh0+1N5yGBPp3dX/aDYwjQhaWhxTQpy54+F dcHipriqLOLthTjoBuh3xXbXSWjuSg2ygAv+/c/xRT08cUis/6laXc+qIFx653UJuQbUmMPqt+264 iqjop6ARu8G/m9LLGHiWSxic7/iHL+AJV5So03ZBxhxKrnxzvixNNQTq5T4IEcZcl8dFO9HO5C/6W IF5ktIqhK3hiLH9oondoxWHzLUME9mvDWjo2p7RwuFWGxLNqLIbjn0gCdswFI0+g==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.95) (envelope-from ) id 1npXUp-00Aeu2-Nb; Fri, 13 May 2022 17:46:27 +0200 From: Johannes Berg To: linux-wireless@vger.kernel.org Cc: Johannes Berg Subject: [PATCH 2/2] mac80211: remove useless bssid copy Date: Fri, 13 May 2022 17:46:24 +0200 Message-Id: <20220513174623.0d659c04ecee.I0809095c59f04c312e6b594ccde238db34e45af6@changeid> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220513174623.a713706d6970.I43b954414c811cfcc6bc394809b31a6bb78d6d12@changeid> References: <20220513174623.a713706d6970.I43b954414c811cfcc6bc394809b31a6bb78d6d12@changeid> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Johannes Berg 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 --- net/mac80211/mlme.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index e2637404ccd1..d38d100b5aed 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