Skip to content

Commit

Permalink
xtensa: remove unused variable wmask
Browse files Browse the repository at this point in the history
After a cleanup the function show_regs doesn't use variable wmask but
still computes it. Drop it.

Fixes: 8d7e824 ("[XTENSA] Clean up elf-gregset.")
Signed-off-by: Max Filippov <[email protected]>
  • Loading branch information
jcmvbkbc committed Oct 19, 2021
1 parent da0a4e5 commit 431d1a3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions arch/xtensa/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 431d1a3

Please sign in to comment.