[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ZzTLGC5bBlI73-1S@finisterre.sirena.org.uk>
Date: Wed, 13 Nov 2024 15:51:52 +0000
From: Mark Brown <broonie@...nel.org>
To: Hardevsinh Palaniya <hardevsinh.palaniya@...iconsignals.io>
Cc: will@...nel.org, tarang.raval@...iconsignals.io,
Catalin Marinas <catalin.marinas@....com>,
Marc Zyngier <maz@...nel.org>,
Oliver Upton <oliver.upton@...ux.dev>,
Ard Biesheuvel <ardb@...nel.org>,
Mark Rutland <mark.rutland@....com>,
Joey Gouly <joey.gouly@....com>,
Ryan Roberts <ryan.roberts@....com>,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] arm64: Refactor conditional logic
On Wed, Nov 13, 2024 at 10:48:18AM +0530, Hardevsinh Palaniya wrote:
> Unnecessarily checks ftr_ovr == tmp in an extra else if, which is not
> needed because that condition would already be true by default if the
> previous conditions are not satisfied.
Specifically the first one, if you revise it'd be good to be specific
about the logic here.
> Additionally, all branches set the variable str, making the subsequent
> "if (str)" check redundant
Reviewed-by: Mark Brown <broonie@...nel.org>
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists