Commit 56b9ac4d authored by Oleg Nesterov's avatar Oleg Nesterov Committed by James Toy

Kill the unused "parent" argument in wait_consider_task(), it was never used.

Signed-off-by: default avatarOleg Nesterov <oleg@redhat.com>
Cc: Roland McGrath <roland@redhat.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Ratan Nalumasu <rnalumasu@gmail.com>
Cc: Vitaly Mayatskikh <vmayatsk@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 91ece556
...@@ -1484,8 +1484,8 @@ static int wait_task_continued(struct wait_opts *wo, struct task_struct *p) ...@@ -1484,8 +1484,8 @@ static int wait_task_continued(struct wait_opts *wo, struct task_struct *p)
* then ->notask_error is 0 if @p is an eligible child, * then ->notask_error is 0 if @p is an eligible child,
* or another error from security_task_wait(), or still -ECHILD. * or another error from security_task_wait(), or still -ECHILD.
*/ */
static int wait_consider_task(struct wait_opts *wo, struct task_struct *parent, static int wait_consider_task(struct wait_opts *wo, int ptrace,
int ptrace, struct task_struct *p) struct task_struct *p)
{ {
int ret = eligible_child(wo, p); int ret = eligible_child(wo, p);
if (!ret) if (!ret)
...@@ -1549,7 +1549,7 @@ static int do_wait_thread(struct wait_opts *wo, struct task_struct *tsk) ...@@ -1549,7 +1549,7 @@ static int do_wait_thread(struct wait_opts *wo, struct task_struct *tsk)
struct task_struct *p; struct task_struct *p;
list_for_each_entry(p, &tsk->children, sibling) { list_for_each_entry(p, &tsk->children, sibling) {
int ret = wait_consider_task(wo, tsk, 0, p); int ret = wait_consider_task(wo, 0, p);
if (ret) if (ret)
return ret; return ret;
} }
...@@ -1562,7 +1562,7 @@ static int ptrace_do_wait(struct wait_opts *wo, struct task_struct *tsk) ...@@ -1562,7 +1562,7 @@ static int ptrace_do_wait(struct wait_opts *wo, struct task_struct *tsk)
struct task_struct *p; struct task_struct *p;
list_for_each_entry(p, &tsk->ptraced, ptrace_entry) { list_for_each_entry(p, &tsk->ptraced, ptrace_entry) {
int ret = wait_consider_task(wo, tsk, 1, p); int ret = wait_consider_task(wo, 1, p);
if (ret) if (ret)
return ret; return ret;
} }
......
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