Commit 3dd923f3 authored by Dmitry Safonov's avatar Dmitry Safonov Committed by Linus Torvalds

um/sysrq: remove needless variable sp

`sp' is a needless excercise here.
Signed-off-by: default avatarDmitry Safonov <dima@arista.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Cc: Anton Ivanov <anton.ivanov@cambridgegreys.com>
Cc: Jeff Dike <jdike@addtoit.com>
Cc: Richard Weinberger <richard@nod.at>
Link: http://lkml.kernel.org/r/20200418201944.482088-36-dima@arista.comSigned-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 13c6371a
...@@ -27,7 +27,6 @@ static const struct stacktrace_ops stackops = { ...@@ -27,7 +27,6 @@ static const struct stacktrace_ops stackops = {
void show_stack(struct task_struct *task, unsigned long *stack) void show_stack(struct task_struct *task, unsigned long *stack)
{ {
unsigned long *sp = stack;
struct pt_regs *segv_regs = current->thread.segv_regs; struct pt_regs *segv_regs = current->thread.segv_regs;
int i; int i;
...@@ -38,10 +37,9 @@ void show_stack(struct task_struct *task, unsigned long *stack) ...@@ -38,10 +37,9 @@ void show_stack(struct task_struct *task, unsigned long *stack)
} }
if (!stack) if (!stack)
sp = get_stack_pointer(task, segv_regs); stack = get_stack_pointer(task, segv_regs);
pr_info("Stack:\n"); pr_info("Stack:\n");
stack = sp;
for (i = 0; i < 3 * STACKSLOTS_PER_LINE; i++) { for (i = 0; i < 3 * STACKSLOTS_PER_LINE; i++) {
if (kstack_end(stack)) if (kstack_end(stack))
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment