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
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]);
@@ -585,8 +583,6 @@ remove_siblinginfo(int cpu) · 1 unmodified line
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 }

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