x86/mm/tlb: Remove unused cpu variable
authorShaokun Zhang <zhangshaokun@hisilicon.com>
Tue, 29 Jan 2019 07:36:57 +0000 (15:36 +0800)
committerBorislav Petkov <bp@suse.de>
Tue, 29 Jan 2019 17:32:30 +0000 (18:32 +0100)
The "cpu" local variable became unused after

  a2055abe9c67 ("x86/mm: Pass flush_tlb_info to flush_tlb_others() etc").

Remove it.

Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: x86-ml <x86@kernel.org>
Link: https://lkml.kernel.org/r/1548747417-33551-1-git-send-email-zhangshaokun@hisilicon.com
arch/x86/mm/tlb.c

index 999d6d8f0beff218a9e0a8dd720d0f5607ff9165..bc4bc7b2f075d3f302ba25dc261b759ab89dab97 100644 (file)
@@ -685,9 +685,6 @@ void native_flush_tlb_others(const struct cpumask *cpumask,
                 * that UV should be updated so that smp_call_function_many(),
                 * etc, are optimal on UV.
                 */
-               unsigned int cpu;
-
-               cpu = smp_processor_id();
                cpumask = uv_flush_tlb_others(cpumask, info);
                if (cpumask)
                        smp_call_function_many(cpumask, flush_tlb_func_remote,