summaryrefslogtreecommitdiff
path: root/arch/um
diff options
context:
space:
mode:
authorRichard Weinberger <richard@nod.at>2015-03-18 14:11:04 +0100
committerRichard Weinberger <richard@nod.at>2015-04-13 21:00:40 +0200
commitfcf81931a0f9cff10101386685f2e9f30fe5f3d2 (patch)
tree4658e5eebcce180c6af65b934e2d1cc57dc3bea0 /arch/um
parentb98b91029cf8a6defc6311d4018c44f3b05fbec7 (diff)
downloadlwn-fcf81931a0f9cff10101386685f2e9f30fe5f3d2.tar.gz
lwn-fcf81931a0f9cff10101386685f2e9f30fe5f3d2.zip
um: Remove dead code from stacktrace
Remove left over code from commit 970e51feaddb (um: Add support for CONFIG_STACKTRACE) Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um')
-rw-r--r--arch/um/kernel/sysrq.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/um/kernel/sysrq.c b/arch/um/kernel/sysrq.c
index 894c8d303cda..aa1b56f5ac68 100644
--- a/arch/um/kernel/sysrq.c
+++ b/arch/um/kernel/sysrq.c
@@ -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;
@@ -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);