summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2021-08-23 06:28:01 +0200
committerMax Filippov <jcmvbkbc@gmail.com>2021-10-19 07:19:35 +0200
commit431d1a34dfb6ce0d824ac22fc0f0c67c94123bc7 (patch)
treec8d021ead88ba966bdbc02655addb84aad7ed34e /arch
parentxtensa: only build windowed register support code when needed (diff)
downloadlinux-431d1a34dfb6ce0d824ac22fc0f0c67c94123bc7.tar.xz
linux-431d1a34dfb6ce0d824ac22fc0f0c67c94123bc7.zip
xtensa: remove unused variable wmask
After a cleanup the function show_regs doesn't use variable wmask but still computes it. Drop it. Fixes: 8d7e8240e66c ("[XTENSA] Clean up elf-gregset.") Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/xtensa/kernel/traps.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/xtensa/kernel/traps.c b/arch/xtensa/kernel/traps.c
index 4418438b13e6..35a7d47f28cf 100644
--- a/arch/xtensa/kernel/traps.c
+++ b/arch/xtensa/kernel/traps.c
@@ -464,12 +464,10 @@ void secondary_trap_init(void)
void show_regs(struct pt_regs * regs)
{
- int i, wmask;
+ int i;
show_regs_print_info(KERN_DEFAULT);
- wmask = regs->wmask & ~1;
-
for (i = 0; i < 16; i++) {
if ((i % 8) == 0)
pr_info("a%02d:", i);