]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sh: kernel: traps: remove unused variable
authorAnders Roxell <anders.roxell@linaro.org>
Thu, 10 Dec 2020 12:44:22 +0000 (13:44 +0100)
committerRich Felker <dalias@libc.org>
Tue, 23 Feb 2021 22:06:47 +0000 (17:06 -0500)
commit2882b7626f4903a8e9250b328cdf7396a6deecac
treecae7a6a20ee14af44e002581f08d96ef27666805
parent258cf5f8aef48f76e1933fc9524a476d21e21e68
sh: kernel: traps: remove unused variable

When building defconfig the following warning shows up:

arch/sh/kernel/traps.c: In function 'nmi_trap_handler':
arch/sh/kernel/traps.c:183:15: warning: unused variable 'cpu' [-Wunused-variable]
  unsigned int cpu = smp_processor_id();
               ^~~

Remove an unused variable 'cpu'.

Fixes: fe3f1d5d7cd3 ("sh: Get rid of nmi_count()")
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Signed-off-by: Rich Felker <dalias@libc.org>
arch/sh/kernel/traps.c