Skip to content

Commit 0d3ae94

Browse files
edumazetKAGA-KOKO
authored andcommitted
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: fe3f1d5 ("sh: Get rid of nmi_count()") Signed-off-by: Eric Dumazet <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected]
1 parent 6efb943 commit 0d3ae94

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

arch/sh/kernel/traps.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,6 @@ static inline void arch_ftrace_nmi_exit(void) { }
180180

181181
BUILD_TRAP_HANDLER(nmi)
182182
{
183-
unsigned int cpu = smp_processor_id();
184183
TRAP_HANDLER_DECL;
185184

186185
arch_ftrace_nmi_enter();

0 commit comments

Comments
 (0)