]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - kernel/exit.c
Merge remote-tracking branch 'wireless-drivers-next/master'
[karo-tx-linux.git] / kernel / exit.c
index 07110c6020a04ea37c04bc18bd0b9287cd0466dc..10e088237fed91bf453a651ea7b3bccc89a003ec 100644 (file)
@@ -59,8 +59,6 @@
 #include <asm/pgtable.h>
 #include <asm/mmu_context.h>
 
-static void exit_mm(struct task_struct *tsk);
-
 static void __unhash_process(struct task_struct *p, bool group_dead)
 {
        nr_threads--;
@@ -1120,8 +1118,7 @@ static int wait_task_zombie(struct wait_opts *wo, struct task_struct *p)
 static int *task_stopped_code(struct task_struct *p, bool ptrace)
 {
        if (ptrace) {
-               if (task_is_stopped_or_traced(p) &&
-                   !(p->jobctl & JOBCTL_LISTENING))
+               if (task_is_traced(p) && !(p->jobctl & JOBCTL_LISTENING))
                        return &p->exit_code;
        } else {
                if (p->signal->flags & SIGNAL_STOP_STOPPED)