]> err.no Git - linux-2.6/commitdiff
Remove bogus BUG() in kernel/exit.c
authorLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 29 Apr 2005 16:37:07 +0000 (09:37 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
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 39d35935b3718a6a8161ea6043692168f81f127e..93851bcd9584597daac893eee17559c02d8b4a96 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)