summaryrefslogtreecommitdiffstats
path: root/arch/sh
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2021-04-14 10:05:17 -0700
committerThomas Gleixner <tglx@linutronix.de>2021-05-10 23:23:04 +0200
commit0d3ae948741ac6d80e39ab27b45297367ee477de (patch)
tree0f543df6f57466fd6c3ca67e23fd631bbbc1c015 /arch/sh
parent6efb943b8616ec53a5e444193dccf1af9ad627b5 (diff)
downloadlinux-0d3ae948741ac6d80e39ab27b45297367ee477de.tar.bz2
sh: Remove unused variable
Removes this annoying warning: arch/sh/kernel/traps.c: In function ‘nmi_trap_handler’: arch/sh/kernel/traps.c:183:15: warning: unused variable ‘cpu’ [-Wunused-variable] 183 | unsigned int cpu = smp_processor_id(); Fixes: fe3f1d5d7cd3 ("sh: Get rid of nmi_count()") Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20210414170517.1205430-1-eric.dumazet@gmail.com
Diffstat (limited to 'arch/sh')
-rw-r--r--arch/sh/kernel/traps.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/sh/kernel/traps.c b/arch/sh/kernel/traps.c
index f5beecdac693..e76b22157099 100644
--- a/arch/sh/kernel/traps.c
+++ b/arch/sh/kernel/traps.c
@@ -180,7 +180,6 @@ static inline void arch_ftrace_nmi_exit(void) { }
BUILD_TRAP_HANDLER(nmi)
{
- unsigned int cpu = smp_processor_id();
TRAP_HANDLER_DECL;
arch_ftrace_nmi_enter();