aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/smp-cps.c
diff options
context:
space:
mode:
authorMatt Redfearn <matt.redfearn@mips.com>2017-12-15 09:34:53 +0000
committerJames Hogan <jhogan@kernel.org>2018-02-05 14:36:06 +0000
commit91d9f8fcf7cc222f4bc7b5fc6496d137eadf8226 (patch)
tree0bdfb0683a05b4a264f0fba246908335cf322572 /arch/mips/kernel/smp-cps.c
parentMIPS: Generic: Support GIC in EIC mode (diff)
downloadlinux-dev-91d9f8fcf7cc222f4bc7b5fc6496d137eadf8226.tar.xz
linux-dev-91d9f8fcf7cc222f4bc7b5fc6496d137eadf8226.zip
MIPS: SMP-CPS: Remove duplicate assignment of core in play_dead
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>
Diffstat (limited to 'arch/mips/kernel/smp-cps.c')
-rw-r--r--arch/mips/kernel/smp-cps.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/mips/kernel/smp-cps.c b/arch/mips/kernel/smp-cps.c
index ecc1a853f48d..03f1026ad148 100644
--- a/arch/mips/kernel/smp-cps.c
+++ b/arch/mips/kernel/smp-cps.c
@@ -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))