remove_siblinginfo() initialises variable 'last', but never uses it. Drop unneeded code.
Unified · Split
| @@ -576,8 +576,6 @@ clear_cpu_sibling_map(int cpu) · 575 unmodified lines | ||
| 576 | 576 | static void |
| 577 | 577 | remove_siblinginfo(int cpu) |
| 578 | 578 | { |
| 579 | − int last = 0; | |
| 580 | − | |
| 581 | 579 | if (cpu_data(cpu)->threads_per_core == 1 && |
| 582 | 580 | cpu_data(cpu)->cores_per_socket == 1) { |
| 583 | 581 | cpumask_clear_cpu(cpu, &cpu_core_map[cpu]); |
| @@ -585,8 +583,6 @@ remove_siblinginfo(int cpu) · 1 unmodified line | ||
| 585 | 583 | return; |
| 586 | 584 | } |
| 587 | 585 | |
| 588 | − last = (cpumask_weight(&cpu_core_map[cpu]) == 1 ? 1 : 0); | |
| 589 | − | |
| 590 | 586 | /* remove it from all sibling map's */ |
| 591 | 587 | clear_cpu_sibling_map(cpu); |
| 592 | 588 | } |