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 | static void | 576 | static void |
| 577 | remove_siblinginfo(int cpu) | 577 | remove_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 | } |