aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYury Norov <[email protected]>2022-05-06 21:08:10 -0700
committerYury Norov <[email protected]>2022-06-03 06:52:58 -0700
commita570e68fabec2f209d94abaabca8aab419437dab (patch)
tree51e18921bd02f71a807cbac6172dbcc8b3971553
parent525d6515604eb1373ce5e6372a6b6640953b2d6a (diff)
ia64: cleanup remove_siblinginfo()
remove_siblinginfo() initialises variable 'last', but never uses it. Drop unneeded code. CC: Ingo Molnar <[email protected]> CC: Peter Zijlstra <[email protected]> CC: Valentin Schneider <[email protected]> CC: [email protected] CC: [email protected] Signed-off-by: Yury Norov <[email protected]> Acked-by: Andrew Morton <[email protected]>
-rw-r--r--arch/ia64/kernel/smpboot.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/ia64/kernel/smpboot.c b/arch/ia64/kernel/smpboot.c
index d10f780c13b9..d0e935cf2093 100644
--- a/arch/ia64/kernel/smpboot.c
+++ b/arch/ia64/kernel/smpboot.c
@@ -576,8 +576,6 @@ clear_cpu_sibling_map(int cpu)
static void
remove_siblinginfo(int cpu)
{
- int last = 0;
-
if (cpu_data(cpu)->threads_per_core == 1 &&
cpu_data(cpu)->cores_per_socket == 1) {
cpumask_clear_cpu(cpu, &cpu_core_map[cpu]);
@@ -585,8 +583,6 @@ remove_siblinginfo(int cpu)
return;
}
- last = (cpumask_weight(&cpu_core_map[cpu]) == 1 ? 1 : 0);
-
/* remove it from all sibling map's */
clear_cpu_sibling_map(cpu);
}