Skip to content

Commit a570e68

Browse files
committed
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]>
1 parent 525d651 commit a570e68

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

arch/ia64/kernel/smpboot.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -576,17 +576,13 @@ clear_cpu_sibling_map(int cpu)
576576
static void
577577
remove_siblinginfo(int cpu)
578578
{
579-
int last = 0;
580-
581579
if (cpu_data(cpu)->threads_per_core == 1 &&
582580
cpu_data(cpu)->cores_per_socket == 1) {
583581
cpumask_clear_cpu(cpu, &cpu_core_map[cpu]);
584582
cpumask_clear_cpu(cpu, &per_cpu(cpu_sibling_map, cpu));
585583
return;
586584
}
587585

588-
last = (cpumask_weight(&cpu_core_map[cpu]) == 1 ? 1 : 0);
589-
590586
/* remove it from all sibling map's */
591587
clear_cpu_sibling_map(cpu);
592588
}

0 commit comments

Comments
 (0)