diff options
author | 2020-06-08 21:31:42 -0700 | |
---|---|---|
committer | 2020-06-09 09:39:12 -0700 | |
commit | 3dd923f39a03dede001afe0edcc08613d5f403e5 (patch) | |
tree | 66d9937b56a4d840149806279cab123c5fcd197d | |
parent | sparc: add show_stack_loglvl() (diff) | |
download | wireguard-linux-3dd923f39a03dede001afe0edcc08613d5f403e5.tar.xz wireguard-linux-3dd923f39a03dede001afe0edcc08613d5f403e5.zip |
um/sysrq: remove needless variable sp
`sp' is a needless excercise here.
Signed-off-by: Dmitry Safonov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Cc: Anton Ivanov <[email protected]>
Cc: Jeff Dike <[email protected]>
Cc: Richard Weinberger <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Linus Torvalds <[email protected]>
-rw-r--r-- | arch/um/kernel/sysrq.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/um/kernel/sysrq.c b/arch/um/kernel/sysrq.c index c71b5ef7ea8c..c831a1c2eb94 100644 --- a/arch/um/kernel/sysrq.c +++ b/arch/um/kernel/sysrq.c @@ -27,7 +27,6 @@ static const struct stacktrace_ops stackops = { void show_stack(struct task_struct *task, unsigned long *stack) { - unsigned long *sp = stack; struct pt_regs *segv_regs = current->thread.segv_regs; int i; @@ -38,10 +37,9 @@ void show_stack(struct task_struct *task, unsigned long *stack) } if (!stack) - sp = get_stack_pointer(task, segv_regs); + stack = get_stack_pointer(task, segv_regs); pr_info("Stack:\n"); - stack = sp; for (i = 0; i < 3 * STACKSLOTS_PER_LINE; i++) { if (kstack_end(stack)) break; |