aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um/drivers')
-rw-r--r--arch/um/drivers/mconsole_kern.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/um/drivers/mconsole_kern.c b/arch/um/drivers/mconsole_kern.c
index 0f3c7d14a6e3..fabd75f5bb5c 100644
--- a/arch/um/drivers/mconsole_kern.c
+++ b/arch/um/drivers/mconsole_kern.c
@@ -741,7 +741,6 @@ void mconsole_stack(struct mc_request *req)
741{ 741{
742 char *ptr = req->request.data; 742 char *ptr = req->request.data;
743 int pid_requested= -1; 743 int pid_requested= -1;
744 struct task_struct *from = NULL;
745 struct task_struct *to = NULL; 744 struct task_struct *to = NULL;
746 745
747 /* 746 /*
@@ -763,8 +762,6 @@ void mconsole_stack(struct mc_request *req)
763 return; 762 return;
764 } 763 }
765 764
766 from = current;
767
768 to = find_task_by_pid(pid_requested); 765 to = find_task_by_pid(pid_requested);
769 if ((to == NULL) || (pid_requested == 0)) { 766 if ((to == NULL) || (pid_requested == 0)) {
770 mconsole_reply(req, "Couldn't find that pid", 1, 0); 767 mconsole_reply(req, "Couldn't find that pid", 1, 0);