Skip to content

Commit

Permalink
um: Remove dead code from stacktrace
Browse files Browse the repository at this point in the history
Remove left over code from commit 970e51f
(um: Add support for CONFIG_STACKTRACE)

Signed-off-by: Richard Weinberger <richard@nod.at>
  • Loading branch information
Richard Weinberger committed Apr 13, 2015
1 parent b98b910 commit fcf8193
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions arch/um/kernel/sysrq.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ static const struct stacktrace_ops stackops = {

void show_stack(struct task_struct *task, unsigned long *stack)
{
unsigned long *sp = stack, bp = 0;
unsigned long *sp = stack;
struct pt_regs *segv_regs = current->thread.segv_regs;
int i;

Expand All @@ -39,10 +39,6 @@ void show_stack(struct task_struct *task, unsigned long *stack)
return;
}

#ifdef CONFIG_FRAME_POINTER
bp = get_frame_pointer(task, segv_regs);
#endif

if (!stack)
sp = get_stack_pointer(task, segv_regs);

Expand Down

0 comments on commit fcf8193

Please sign in to comment.