Remove bogus BUG() in kernel/exit.c
Linus Torvalds [Fri, 29 Apr 2005 16:37:07 +0000 (09:37 -0700)]
It's old sanity checking that may have been useful for debugging, but
is just bogus these days.

Noticed by Mattia Belletti.

kernel/exit.c

index 39d3593..93851bc 100644 (file)
@@ -517,8 +517,6 @@ static inline void choose_new_parent(task_t *p, task_t *reaper, task_t *child_re
         */
        BUG_ON(p == reaper || reaper->exit_state >= EXIT_ZOMBIE);
        p->real_parent = reaper;
-       if (p->parent == p->real_parent)
-               BUG();
 }
 
 static inline void reparent_thread(task_t *p, task_t *father, int traced)