From: Zachary Amsden Remove the "temporary debugging check" which has managed to live for quite some time, and is clearly unneeded. The mm can never be live at this point, so clearly checking the LDT in the mm->context is redundant as well. Signed-off-by: Zachary Amsden Cc: "Seth, Rohit" Cc: Stephen Rothwell Signed-off-by: Andrew Morton --- arch/i386/kernel/process.c | 12 +----------- 1 files changed, 1 insertion(+), 11 deletions(-) diff -puN arch/i386/kernel/process.c~x86-deprecate-useless-bug arch/i386/kernel/process.c --- devel/arch/i386/kernel/process.c~x86-deprecate-useless-bug 2005-11-22 22:30:35.000000000 -0800 +++ devel-akpm/arch/i386/kernel/process.c 2005-11-22 22:30:35.000000000 -0800 @@ -402,17 +402,7 @@ void flush_thread(void) void release_thread(struct task_struct *dead_task) { - if (dead_task->mm) { - // temporary debugging check - if (dead_task->mm->context.size) { - printk("WARNING: dead process %8s still has LDT? <%p/%d>\n", - dead_task->comm, - dead_task->mm->context.ldt, - dead_task->mm->context.size); - BUG(); - } - } - + BUG_ON(dead_task->mm); release_vm86_irqs(dead_task); } _