[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <a9070724-b4b7-4a23-8ed4-b6464175b660@lunn.ch>
Date: Mon, 10 Feb 2025 14:24:15 +0100
From: Andrew Lunn <andrew@...n.ch>
To: Ethan Carter Edwards <ethan@...ancedwards.com>
Cc: Piotr Kwapulinski <piotr.kwapulinski@...el.com>,
Tony Nguyen <anthony.l.nguyen@...el.com>,
Przemek Kitszel <przemyslaw.kitszel@...el.com>,
Andrew Lunn <andrew+netdev@...n.ch>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
Jedrzej Jagielski <jedrzej.jagielski@...el.com>,
Simon Horman <horms@...nel.org>,
Stefan Wegrzyn <stefan.wegrzyn@...el.com>,
Michal Swiatkowski <michal.swiatkowski@...ux.intel.com>,
intel-wired-lan@...ts.osuosl.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-hardening@...r.kernel.org
Subject: Re: [PATCH] ixgbe: remove self assignment
On Sun, Feb 09, 2025 at 11:47:24PM -0500, Ethan Carter Edwards wrote:
> Variable self assignment does not have any effect.
Hi Ethan
As a general rule, it would be good to explain in the comment message
what research you did to find out why there is a self assignment, and
why just deleting it is the correct solution.
There are somewhat legitimate reasons to do a self assign, some older
compilers would warn about variables which were set but then never
used, for example. Or it could be a dumb copy/paste error when writing
the code. But more likely than not, the developer had something in
mind, got distracted, and never finished the code. Which appears to
the issue here.
If you cannot figure out what the correct fix is, please just email to
the list, Cc: the Maintainer of the file, pointing out the problem.
Andrew
---
pw-bot: cr
Powered by blists - more mailing lists