[PATCH v4] arm64/cpufeature: Refactor conditional logic in init_cpu_ftr_reg()
Will Deacon
will at kernel.org
Tue Dec 10 10:34:45 PST 2024
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
More information about the linux-arm-kernel
mailing list