Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1227002rdb; Mon, 19 Feb 2024 08:08:58 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWf314j8Ric3XZAnkwLmHSP8tut+kZBgTqNGh061EyeOrMNyfUGz/tRFF6kUEuw6sXeUlOaEC+oDoSOrLgUfJBqVNPp82r9di07Y4sm/g== X-Google-Smtp-Source: AGHT+IFLzL20Hj0E8+bkK5BBRMR/zNfocIP6l1TE1VDN3qxiLwrqeYtxvuIoYuyEI2eMBtK+GK6X X-Received: by 2002:a05:6a00:a8a:b0:6e0:92c2:c3ee with SMTP id b10-20020a056a000a8a00b006e092c2c3eemr14786523pfl.18.1708358938334; Mon, 19 Feb 2024 08:08:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708358938; cv=pass; d=google.com; s=arc-20160816; b=LDnz3hca+m7kOv+Ggx5jifiZCDyKGQa5GPVcmgzNoieG+Y+6SF8emG5pXMrndbegJW rlV+Cura6ZHO7aaDUWh9sosFf00W1Mw0iH/IQAfQc7tWsw/yHTiabWklhaVb85yIdNd1 HJZ6x7UcGuzzGshNTYHxEu0d/vx+r5IgXTfTFN+DHqLw2NEeD3yljyf4lM9wPyAqU2SR AVE3104xUGjxahKGr3SB34zeLZCkK6qKjPP0jWKWZ7WAAfDSPa/Yf+QdYom/8Obzfizy shEJ8nOUEfzu70b8CE+yLOiOtw7IPDAmjyeLu91T5hVWDL315dSAnRZaJINbnBgZG6MA MJ8w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=aWl3Gkiy/fbiVwtSIulAuuh30ES9/qT/t1In6mwr0u4=; fh=IcqowfeANzhm4apv1m+PtMrwgpPzwaKS3iagFJU1LRQ=; b=xpMa5qSzee7hEu/ux4R3BtfVbjLYi149XKtbRGgIejp/e7iHzFBpQq9wXgm9dUV/vY BHj1SmBvvFWZHxfw1HnIbu1Sj42E/AoTgOJfJ5xeI6mkTP18Q9NOeuy1b4OYmXxUnMdt SCEjdafE+7Ejfm0BCSLR9vKfVjFTbRhhnYdODP4bw+hUJo8vJZ1Eyp9redbCyxzA0JWJ 0ebm7iqNiKpqoMSPNzp9eTcP0bGF8gV7BS5JixF9czxbekS/7seTaCWonkMyRoKxGRgL cEYuiR504VsmiV0eZCRzA6KHJ0Yov7T1O50COfiPfJokMFtosrgMve10ZhJkt5zB4DF7 agKw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="oraUqvh/"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-71642-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71642-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id q4-20020a656a84000000b005d73172aca1si4673239pgu.861.2024.02.19.08.08.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 08:08:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71642-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="oraUqvh/"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-71642-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71642-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 1025E284BC8 for ; Mon, 19 Feb 2024 16:08:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 583043D96C; Mon, 19 Feb 2024 16:08:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="oraUqvh/" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 694473B79D; Mon, 19 Feb 2024 16:08:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708358907; cv=none; b=qk8yHIxtG5IaF19z0ONN6Q6wAIcc6hxdssI0OLNElnoRocXT1oLX5y142XTkpqxjZMwods7K47CNhjNMmrzdrwbOufM+wj1PdFA6VQcduCQf2/OTql7M5PabCxzsJDlGbeZMgUuFbpfmh9FqlN9lCkFZYiB7usLxpEpEVCffqLc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708358907; c=relaxed/simple; bh=w5zyWB0zCqUq5ura4kPaJjtdUevtDVevxgEmY/Ns0J4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=B+VxS0u9fh4dM6+CMdACsotEL/6nTLvau4MNRLFDLAjXbeaS0PVe8zmPWX5esau8yiD/UgRu3zrLxzBBb9amq9Uo25sokrWfBIanTk2S/2J1y1xzrQ78MkxQtE+JLkLBRI/dDYYO02x7Fbj9U/D43qbmAUPo7ShCTG2O/6tofPM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=oraUqvh/; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D5046C433B1; Mon, 19 Feb 2024 16:08:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708358906; bh=w5zyWB0zCqUq5ura4kPaJjtdUevtDVevxgEmY/Ns0J4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oraUqvh//OrA+nxEoztgmnAS+4ohUmYxlaCY1rqD8oC8cBSOYiKU8RHTdk7Fz8zUH p2MCufGHuJ75baRx8RxloHqcobppPB9VCxs8V5DVo82t4iQL8k+MDizJp2cCicC6aL dIyEb0cpNBSpucJ9iJLcOqFwn/dX/ani86me9QQItwuEG6URVcyNqwqV3IvkSqY7G8 llLd5YAwtkqb8EZ72SUn/Fgc5TrUx1vClozODBhUkFPqkMFwxBe/EBAAZ/55Yz5L6P /1+VRVVUkVap4fXEhq+21Qy82FclEEF+9w23gP1EsrQpdZ28sZyqalNxj/H7FOOHDU fK6W0vzJBMCgA== Date: Mon, 19 Feb 2024 16:08:22 +0000 From: Simon Horman To: Colin Ian King Cc: Johannes Berg , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] wifi: mac80211: clean up assignments to pointer cache. Message-ID: <20240219160822.GF40273@kernel.org> References: <20240215232151.2075483-1-colin.i.king@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240215232151.2075483-1-colin.i.king@gmail.com> On Thu, Feb 15, 2024 at 11:21:51PM +0000, Colin Ian King wrote: > From: Colin Ian King > > The assignment to pointer cache in function mesh_fast_tx_gc can > be made at the declaration time rather than a later assignment. > There are also 3 functions where pointer cache is being initialized > at declaration time and later re-assigned again with the same > value, these are redundant and can be removed. > > Cleans up code and three clang scan build warnings: > warning: Value stored to 'cache' during its initialization is never > read [deadcode.DeadStores] > > Signed-off-by: Colin Ian King FWIIW, these changes look fine to me although I might have split the mesh_fast_tx_gc() and mesh_fast_tx_flush_sta() changes into different patches as they seem to address separate issues. That notwithstanding, Reviewed-by: Simon Horman