summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/tasks.py
diff options
context:
space:
mode:
authorHardevsinh Palaniya <hardevsinh.palaniya@siliconsignals.io>2024-11-15 08:36:35 +0300
committerWill Deacon <will@kernel.org>2024-12-10 15:16:19 +0300
commite52163df77215c991cf4b6439f64c6331fd7dbfb (patch)
tree4e04f5ee91ffe8a5c005496f60d9ab71de0b4a60 /scripts/gdb/linux/tasks.py
parent264a593da60b60c4f8f218ac50cd1305d75387e8 (diff)
downloadlinux-e52163df77215c991cf4b6439f64c6331fd7dbfb.tar.xz
arm64/cpufeature: Refactor conditional logic in init_cpu_ftr_reg()
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) { Logic: The first and last conditions are inverses of each other, so the last condition must be true if the first two conditions are false. Additionally, all branches set the variable str, making the subsequent "if (str)" check redundant Reviewed-by: Mark Brown <broonie@kernel.org> Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com> Signed-off-by: Hardevsinh Palaniya <hardevsinh.palaniya@siliconsignals.io> Link: https://lore.kernel.org/r/20241115053740.20523-1-hardevsinh.palaniya@siliconsignals.io Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions