History

ia64: cleanup remove_siblinginfo()

remove_siblinginfo() initialises variable 'last', but never uses it. Drop unneeded code.

Yury Norov committed 4 years ago

Commit a570e681 parent 525d6511 file · +0 −4Browse files

Unified · Split

arch/ia64/kernel/smpboot.c+0−4
@@ -576,8 +576,6 @@ clear_cpu_sibling_map(int cpu) · 575 unmodified lines
576static void576static void
577remove_siblinginfo(int cpu)577remove_siblinginfo(int cpu)
578{578{
579 int last = 0;
580
581 if (cpu_data(cpu)->threads_per_core == 1 &&579 if (cpu_data(cpu)->threads_per_core == 1 &&
582 cpu_data(cpu)->cores_per_socket == 1) {580 cpu_data(cpu)->cores_per_socket == 1) {
583 cpumask_clear_cpu(cpu, &cpu_core_map[cpu]);581 cpumask_clear_cpu(cpu, &cpu_core_map[cpu]);
@@ -585,8 +583,6 @@ remove_siblinginfo(int cpu) · 1 unmodified line
585 return;583 return;
586 }584 }
587 585
588 last = (cpumask_weight(&cpu_core_map[cpu]) == 1 ? 1 : 0);
589
590 /* remove it from all sibling map's */586 /* remove it from all sibling map's */
591 clear_cpu_sibling_map(cpu);587 clear_cpu_sibling_map(cpu);
592}588}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t