Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1742584rdb; Wed, 31 Jan 2024 07:49:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IGF0taQZRzDk3cY9d+NsmnX7AQPpfa1JxPU/S58GTi3AUf8GcFVmCFBAKjZdAhbhzu4iykC X-Received: by 2002:a81:af11:0:b0:604:b6c:6ecb with SMTP id n17-20020a81af11000000b006040b6c6ecbmr1814989ywh.37.1706716188324; Wed, 31 Jan 2024 07:49:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706716188; cv=pass; d=google.com; s=arc-20160816; b=fUFLzsnK9q5vEwBmAxvCbOjRW4XGLZeuk3hSqFuO8URM+nboQ6xJ9RZsq4FlSyHZxm CpvhU8PlovZX/psWAXy29qq0NEGYW1/uv6hUz7ryIpTeIID8QXaEo01b+04rnrwPG/hX jW2HsaaR2r/aBSKkwOMzhAy3BPZDzKHGwIenZyJYn+7/F8JlGeFhpvk1P64NL4wjOUA1 vdffZ88B9/2w4TLnHen63U/pCLK4Y3JlfA7EEQZgpqW8XjUZTsVcbkHWauHJXjBpspmX HGjTTp4yT+xshHafZ9N+EKewUKyvEllPXxr4hHSm7Knh9a16QJ17B0oZLQivYr7uZJg/ Xt/A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=Tr3Ud1W06RjTFYmGRDbdXScNEdgPp2NzrHiPUv56EQE=; fh=/dDG9SnjzOGcA1rKmF78xeVscXCIDxK1uxYC0Aj9u58=; b=CgnaGcOXQWlqjO0XKsXpBAQCJx2Ldh0vXrkR+dBZfEmJd7EvSojS8eTXK6owSQlyW4 9qTVmEG5iRi2OGi3yG1UZoOBGAH6VGc4gTA6yS6Yg1XwEXnbTjbnNgfFq0Z8Fv9RjmPE pztJMmemE5QenfIwLGXuBQgHovKK/+fV+NR3fhB0cq/PUDzfqIIaON/PXeovoSqRAyUI boGI2UzLkGHbS3dDYmeDKX2SbsSJ6xcnBmKHqy7ue44738Rkn6SyOENZuu6tKEPIhITn GZmr8sl0Dpfb5a6dUtDajY1JJXQRTSLCwyxDs/il9b7xtaEPFpGaYf2w5w0jzYP3uqSd IBMQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=sGOTRKzI; arc=pass (i=1 spf=pass spfdomain=sipsolutions.net dkim=pass dkdomain=sipsolutions.net dmarc=pass fromdomain=sipsolutions.net); spf=pass (google.com: domain of linux-wireless+bounces-2890-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-2890-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net X-Forwarded-Encrypted: i=1; AJvYcCUmypm+xitv0fl6Pp0ewi/D5UjosnytDCUIQeioMdp/ECDcBfG+By28lvnHTc7IUUycK6M2kM7DdclqD8oj8eBrINr7q64MnQ5ieZzdDQ== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id b22-20020a05622a021600b0042bee2f18f2si666300qtx.229.2024.01.31.07.49.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 07:49:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-2890-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=sGOTRKzI; arc=pass (i=1 spf=pass spfdomain=sipsolutions.net dkim=pass dkdomain=sipsolutions.net dmarc=pass fromdomain=sipsolutions.net); spf=pass (google.com: domain of linux-wireless+bounces-2890-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-2890-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 1664E1C24578 for ; Wed, 31 Jan 2024 15:49:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 42FA384A57; Wed, 31 Jan 2024 15:49:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b="sGOTRKzI" X-Original-To: linux-wireless@vger.kernel.org Received: from sipsolutions.net (s3.sipsolutions.net [168.119.38.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AC5E212A14C for ; Wed, 31 Jan 2024 15:49:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=168.119.38.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706716150; cv=none; b=JicGCxm9syoT/23m10nHlwxitDhqtbFQHPPNrb9pq/krwOLWW6HbNNiTi2YOZdwFfGcedIp99pxCDfNMkfuPJSx6gOk0Nhw1jNJ1oy5ymKLced4eykGLGbEqUHgCYKrUb+7RH+VrlKed+pUmwBlukcYZjtVdfcPPqw9GJdLo6Go= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706716150; c=relaxed/simple; bh=yREoDjsqh6dtmJrdQJLG/aS3aa72KKX++9ckY/7sRhQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=aUoSJjtpLeW1CA2tGjgTjcCGBVwj8gf+XnSpKM3toNAYbR+DctnmdjukhMsWkqJU49e2odlQUWPeLyhOGRGIbCbpXjn8V9mbigP1du+zQgh/7wf2qSALffGckuHajjLp9QW3Fpx7AXmMJY+iCrfjwdfec3pcibOYIe7vqMxjI1g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net; spf=pass smtp.mailfrom=sipsolutions.net; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b=sGOTRKzI; arc=none smtp.client-ip=168.119.38.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sipsolutions.net DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=Content-Transfer-Encoding:MIME-Version: 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:In-Reply-To:References; bh=Tr3Ud1W06RjTFYmGRDbdXScNEdgPp2NzrHiPUv56EQE=; t=1706716148; x=1707925748; b=sGOTRKzIiSgcIBDA4arS/TpMOYdklrr6CJCz10UbTzW8+rGGDynu8WoIeeOShn36bGVHfW7Tk8j mwFX920Cq4chPQoFlj/sK7w0TVvcAG2nRWdl0aI0Yg7gXBhZieRwoKWsv6+iU3qR6F8+wCW8sdpoe h9q/jRq6sBZVghL4Yr67siihZouo5/xxOE1cN2qnqaQl/A6zZKnQ5UCm4ReT9Cp7iX1Oo4mlwyf+C 19BgjC5G3ylAv7EM3afF2HStjBpPG1eVBvl7Mat8i6ja78w4lwSwVe7hw+5Y3bNM7DxM/FWQlBj0Z E8WM1DCcHaqxLajQrfxbcs+JF/DqEtUEwmwA==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97) (envelope-from ) id 1rVCpl-00000007JBz-2KHQ; Wed, 31 Jan 2024 16:49:05 +0100 From: Johannes Berg To: linux-wireless@vger.kernel.org Cc: Johannes Berg Subject: [PATCH] wifi: mac80211: remove extra shadowing variable Date: Wed, 31 Jan 2024 16:49:04 +0100 Message-ID: <20240131164903.e9746a5cfe0e.I30348fe77593057ac3fe8e2afa3d7a97de6d04d0@changeid> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Johannes Berg 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 --- net/mac80211/rx.c | 1 - 1 file changed, 1 deletion(-) diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c index 1ee00547c0a4..9902ea69af0a 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c @@ -5231,7 +5231,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, -- 2.43.0