From: Linus Torvalds Date: Fri, 29 Apr 2005 16:37:07 +0000 (-0700) Subject: Remove bogus BUG() in kernel/exit.c X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c06fec5022ebe014af876da2df4a0eee836e97c8;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git Remove bogus BUG() in kernel/exit.c It's old sanity checking that may have been useful for debugging, but is just bogus these days. Noticed by Mattia Belletti. --- diff --git a/kernel/exit.c b/kernel/exit.c index 39d35935b371..93851bcd9584 100644 --- a/kernel/exit.c +++ b/kernel/exit.c @@ -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)