Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp508381imw; Wed, 13 Jul 2022 02:48:26 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vEoWPsIvnewFVqpDGe59nvn0wVrA/kosvoEFHzRXsAOeyUSnLm/I9WBnxhY7iOP0InlSHE X-Received: by 2002:a17:903:245:b0:16b:9c49:6b1c with SMTP id j5-20020a170903024500b0016b9c496b1cmr2256240plh.153.1657705706743; Wed, 13 Jul 2022 02:48:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657705706; cv=none; d=google.com; s=arc-20160816; b=MvGTH3UvPN86k0rTX1yehjvM/0Wo2ywnLAfOA8Ej3gik1RVjrpLohfu4qNO1fTwxPD X8Az7hk8biFccntlJc1x0MfPOHeT9hPhMHJcdPbX8Sp3K9lPAgoZtZPoOw5m89PtYL/G Pjx/dmw67FXpUdkM+dy3Nv12dflWs2IqxrpaicV8FNqeQp93eCxv4+xlsAMN/to1UAcq AECF6wtXogosc1yz0LWanZeiwfCCElN/3TgvzzYXit7HmkS7s3pwveqTf6zoz9tUx15+ cbmjinFZpdbXpNCgJTtfPRWAYvkwLOQUmjeppaKVLhC13E9xpJ8U8OXuuDJN3M04RsBw sfDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=wd2/qnubEFFzrT6melk17EpX1kKofQeLt5QSjHuNXgg=; b=ANn5AKO1ask7iN0IE3zzlQg42VdukBIetCCwv/nb9Y4eJEOzSU7zsngtQ/CtHwpgsw os9L/cYIsLFiSCc6W/a59+VEWPgzTLWZJLjMp4gmQd+5CncXnkIlRsrwpXgt3FxDsOSn CZ7l7M6nwcnLKwG5vZm+hlS0ibG5iuXjiM2si7uRkLvgODvYytKtbCUz5CqfuIPPtooR hR8YCIMsCbV23N/gdwABVb0t9ZgBcsMCKwEZ8JfgpvgDk4e/BiDdgpi3Bsrk3LJI/b/W 8KXXbp1R3zKWkjHD5c1dsFj9dLSS8pSo+G+9j8DA5E7xCsL/+U0Hyv+ku1whaYn84sbC Ky4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=RBxhANOR; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j5-20020a17090a694500b001e3495408d6si1784492pjm.123.2022.07.13.02.48.19; Wed, 13 Jul 2022 02:48:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=RBxhANOR; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234210AbiGMJps (ORCPT + 65 others); Wed, 13 Jul 2022 05:45:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236171AbiGMJpP (ORCPT ); Wed, 13 Jul 2022 05:45:15 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F4C9ED16E for ; Wed, 13 Jul 2022 02:45:15 -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=wd2/qnubEFFzrT6melk17EpX1kKofQeLt5QSjHuNXgg=; t=1657705515; x=1658915115; b=RBxhANORrsp68EgpczHXj0fQd4xlwWvEPxK1l0Zj4ZrEhLX Dc+kgeddoW2RVaPbeSvZTLNDVon/DLegylv1vco+rb3iDOIJHMW0LM5J/zh9meZtjKWmNbZ5rt5We k5BHFn0JJ1/pEV4ct5Jx5ce1Z1wGCe3h2KwRML7THqvxEvK4lBXUluvj4a9zVawX5969yFb87cAPh v/feQpikB++I0uZdhBg4hpWnDJ9zoEzOZNelOYIbTc64BDKlAyB3G6ewPOnh2564DAjMwWyjukpbT x//BzwdG5V5c/2Konj5id4sie93soo8eBE5IQ46/0DFSny8dJfGuOS9fENM9X6AQ==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.95) (envelope-from ) id 1oBYvh-00EgvB-6m; Wed, 13 Jul 2022 11:45:13 +0200 From: Johannes Berg To: linux-wireless@vger.kernel.org Cc: Johannes Berg Subject: [PATCH 30/76] wifi: mac80211: remove unused bssid variable Date: Wed, 13 Jul 2022 11:44:16 +0200 Message-Id: <20220713114425.be231e650d80.I6d113541aecb6b0750498615b17420a3333494b1@changeid> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220713094502.163926-1-johannes@sipsolutions.net> References: <20220713094502.163926-1-johannes@sipsolutions.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Johannes Berg This variable is only written to, remove it. Signed-off-by: Johannes Berg --- net/mac80211/mlme.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 0992a3ff3a98..bfb29d09bd1d 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@ -6364,7 +6364,6 @@ int ieee80211_mgd_deauth(struct ieee80211_sub_if_data *sdata, int ieee80211_mgd_disassoc(struct ieee80211_sub_if_data *sdata, struct cfg80211_disassoc_request *req) { - u8 bssid[ETH_ALEN]; u8 frame_buf[IEEE80211_DEAUTH_FRAME_LEN]; /* @@ -6380,7 +6379,6 @@ int ieee80211_mgd_disassoc(struct ieee80211_sub_if_data *sdata, "disassociating from %pM by local choice (Reason: %u=%s)\n", req->bss->bssid, req->reason_code, ieee80211_get_reason_code_string(req->reason_code)); - memcpy(bssid, req->bss->bssid, ETH_ALEN); ieee80211_set_disassoc(sdata, IEEE80211_STYPE_DISASSOC, req->reason_code, !req->local_state_change, frame_buf); -- 2.36.1