]> git.baikalelectronics.ru Git - kernel.git/commitdiff
MIPS: SMP-CPS: Remove duplicate assignment of core in play_dead
authorMatt Redfearn <matt.redfearn@mips.com>
Fri, 15 Dec 2017 09:34:53 +0000 (09:34 +0000)
committerJames Hogan <jhogan@kernel.org>
Mon, 5 Feb 2018 14:36:06 +0000 (14:36 +0000)
The merge of commit f875a832d2028 ("MIPS: Abstract CPU core & VP(E) ID
access through accessor functions") ended up creating a duplicate
assignment of core during the rebase on commit bac06cf0fb9d ("MIPS:
smp-cps: Fix potentially uninitialised value of core"). Remove the
duplicate.

Fixes: f875a832d202 ("MIPS: Abstract CPU core & VP(E) ID access through accessor functions")
Signed-off-by: Matt Redfearn <matt.redfearn@mips.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Paul Burton <paul.burton@mips.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/17955/
Signed-off-by: James Hogan <jhogan@kernel.org>
arch/mips/kernel/smp-cps.c

index ecc1a853f48d4225b72ea0dd7299c64e450653c1..03f1026ad14841f902f40aa61c8bbcbd1af46eb9 100644 (file)
@@ -439,8 +439,6 @@ void play_dead(void)
        pr_debug("CPU%d going offline\n", cpu);
 
        if (cpu_has_mipsmt || cpu_has_vp) {
-               core = cpu_core(&cpu_data[cpu]);
-
                /* Look for another online VPE within the core */
                for_each_online_cpu(cpu_death_sibling) {
                        if (!cpus_are_siblings(cpu, cpu_death_sibling))