diff options
-rw-r--r-- | kernel/cpu.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/cpu.c b/kernel/cpu.c index c47506357519..0a5f630f5c54 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c | |||
@@ -764,7 +764,6 @@ static int __ref _cpu_down(unsigned int cpu, int tasks_frozen, | |||
764 | { | 764 | { |
765 | struct cpuhp_cpu_state *st = per_cpu_ptr(&cpuhp_state, cpu); | 765 | struct cpuhp_cpu_state *st = per_cpu_ptr(&cpuhp_state, cpu); |
766 | int prev_state, ret = 0; | 766 | int prev_state, ret = 0; |
767 | bool hasdied = false; | ||
768 | 767 | ||
769 | if (num_online_cpus() == 1) | 768 | if (num_online_cpus() == 1) |
770 | return -EBUSY; | 769 | return -EBUSY; |
@@ -809,7 +808,6 @@ static int __ref _cpu_down(unsigned int cpu, int tasks_frozen, | |||
809 | cpuhp_kick_ap_work(cpu); | 808 | cpuhp_kick_ap_work(cpu); |
810 | } | 809 | } |
811 | 810 | ||
812 | hasdied = prev_state != st->state && st->state == CPUHP_OFFLINE; | ||
813 | out: | 811 | out: |
814 | cpu_hotplug_done(); | 812 | cpu_hotplug_done(); |
815 | return ret; | 813 | return ret; |