Received: by 2002:a05:7412:8d1c:b0:fa:4c10:6cad with SMTP id bj28csp125446rdb; Tue, 16 Jan 2024 17:56:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IGs/ksr2+2RcMujnsyXo97csNYUzSElhGk4pybS/5NSXf9ssyynfp/0JDLzL+fP63ZHgDHn X-Received: by 2002:a92:d1cd:0:b0:361:91e7:d480 with SMTP id u13-20020a92d1cd000000b0036191e7d480mr1078443ilg.127.1705456586886; Tue, 16 Jan 2024 17:56:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705456586; cv=pass; d=google.com; s=arc-20160816; b=w9CeGkyb9wRP2MwIS4cJ6A31UITtd+XONkQCEfctk4C9r5pdPLzgZ5WIDbCnP1QTFF EITnbaSCrn+AWwPzbI7ye1hEZGoFeLtdRy/UF93PQlrw2XZLrPYch0NXIuet9EAk6uTJ kSGwHJtgZJNwWPqIKeQN58Q2Ps/wnI7sL0w46GPepwlmgZ7mpb7tjnwyrB5RwN3h4eb6 BZEB/HTb48iLA/fdqlLYl2Q4AxiYOkZIXlob04CPqYwd1VPnpVq0VxHnJfSwgdNJqNlz zsd6pE6UyZx28EL+YSICWIM7+B+l7Wmds418Hjk4cXcsyB33ue6AsCKx/TFc5vPrg1TP nhcA== 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:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=d1zYRi0OZI58etE6LiQszNokW3jM7G0Y51BpI5BTcNU=; fh=QpXm3JgassVGWL8U6fGT9asVec7TNnvRkeLkT2LZ7FQ=; b=ziM9Rc6ZWAecQZ8jjAznYeNUZTeXwMBznhYGwtqc8x9yMPaGCaG2+sMAh68Snz1coS lZGKSvEuyui/1sEWK7Ikd2s70dP9yPfdR8UbhAdny0fHrW1PDb6ZeYR2z1Vv9sn6nOg0 uVJmVtYB/48ycVVVyiWHIk8amuEF/OZn5JQBc48HhMNATUCNsYAMGAoupAkm4UkhpE0h m1RWp+m7qmV5JoD4txHQ8jTchysHamJqGbwilrhM8+zIg4EioJ6cyOSSEspG3syeyaXt vaDQ2zUmfl9qudl+UgRt3wY5icIGEX+ZQoZvkgNP03NZPz24m+NzRPnClL6u+wQammDN n11g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ozMk7K8I; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-28443-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-28443-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id w128-20020a636286000000b005cddfe1270asi12696935pgb.827.2024.01.16.17.56.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 17:56:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-28443-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ozMk7K8I; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-28443-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-28443-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 466EEB230EE for ; Wed, 17 Jan 2024 01:53:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 56F364416; Wed, 17 Jan 2024 01:53:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ozMk7K8I" 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 78A5F1385; Wed, 17 Jan 2024 01:53:30 +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=1705456410; cv=none; b=sI3BGdsvyOmG+6zsPbhgBL3EolR+C5nG/2Et/eVoUBoPwKd3x4qNSpQktynpwNx/rQTv2oQF4W75y9GLZIDNIucb8pdJPcJ6xMUk3uhWjCEW7yqFJ/8JweyNQpHilpuyZD77H9nZa/Ujo4n/RgiT371UUYQqPuuWMwzCpC96TIU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705456410; c=relaxed/simple; bh=BElXs104GGWyneznFWlmSje+zAUEH5lxUrbFygcCijY=; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: In-Reply-To:References:MIME-Version:Content-Type: Content-Transfer-Encoding; b=kxB2uDOC5nNDL89mPsdwDm159OX/SCgR4Eqez3zPMQ3vSJYC6rozUYia3Prd7WqRaBaN2KcFFAaGH/KiAXGht/peFZ0IZZleDXn3AZ6RYz0aIhOjTGAbWvBe7KJGvBOIPPuoRHoBRfKdl4bfr/WKvVf+RRWcXmkW+qy22etR1lk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ozMk7K8I; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B7C93C433F1; Wed, 17 Jan 2024 01:53:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705456410; bh=BElXs104GGWyneznFWlmSje+zAUEH5lxUrbFygcCijY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ozMk7K8Ian3IYofgxo4tGXyMnrSkXFAM0Imbj3BzW102RHMvznMN3OoGL9urFPbTs fZWU2v3OA3eUT5TSM7vzZVILJZrZNfjxYpJje0gpCADB1q2wiu1cP3lc33S7s9cjIm 2dswo+u1SK2l91N+SOFwcVpLiqEHh081QcyvOJ8EpaN56VR9qFOjtI0F/BgWG79cUW j5VSTUlSvyr+1gweW5woWRp0NK8pS6vMl6RajE8ulfQ3fgDb6KrBxMPuxJVk6xXnX1 ldKYmZerAWcZaODBLPW2tj9PoZE3S2qL4yeOeBBXue5Dqrs7PBTzxPOlS/2ZFDnAA3 /vr7+NePMR5eg== Date: Tue, 16 Jan 2024 17:53:28 -0800 From: Jakub Kicinski To: Colin Ian King Cc: "David S . Miller" , Eric Dumazet , Paolo Abeni , Lars Povlsen , Steen Hegelund , UNGLinuxDriver@microchip.com, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH][next] net: microchip: sparx5: remove redundant store to variable clk_hz Message-ID: <20240116175328.2d6902af@kernel.org> In-Reply-To: <20240116161847.2317011-1-colin.i.king@gmail.com> References: <20240116161847.2317011-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-Transfer-Encoding: 7bit On Tue, 16 Jan 2024 16:18:47 +0000 Colin Ian King wrote: > The store to clk_hz is redundant since clk_hz goes out of scope on the > return. Fix this by replacing the *= operator with just * to remove > the store back to clk_hz. > > Cleans up clang scan build warning: > warning: Although the value stored to 'clk_hz' is used in the enclosing > expression, the value is never actually read from 'clk_hz' > [deadcode.DeadStores] > > Signed-off-by: Colin Ian King For consistency - same story as: https://lore.kernel.org/all/20240116193152.GD588419@kernel.org/ -- pw-bot: defer