Re: [PATCH v4] arm64/cpufeature: Refactor conditional logic in init_cpu_ftr_reg()

From: Will Deacon
Date: Tue Dec 10 2024 - 13:35:27 EST


On Fri, 15 Nov 2024 11:06:35 +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.
>
> if (ftr_ovr != tmp) {
> } else if (ftr_new != tmp) {
> } else if (ftr_ovr == tmp) {
>
> [...]

Applied to arm64 (for-next/cpufeature), thanks!

[1/1] arm64/cpufeature: Refactor conditional logic in init_cpu_ftr_reg()
https://git.kernel.org/arm64/c/e52163df7721

Cheers,
--
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev