From: Jesper Juhl Date: Sat, 21 Jul 2007 15:11:14 +0000 (+0200) Subject: i386: Remove unneeded test of 'task' in dump_trace() X-Git-Tag: v2.6.23-rc1~68 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=028a690a1ebc8b825b6f42214a99a5abcf9aa4c6;p=linux-2.6-omap-h63xx.git i386: Remove unneeded test of 'task' in dump_trace() Remove unneeded test of task != NULL from arch/i386/kernel/traps.c::dump_trace() At the start of the function we have this test: if (!task) task = current; so further down there's no need to test 'task'. Signed-off-by: Jesper Juhl Signed-off-by: Andrew Morton Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds --- diff --git a/arch/i386/kernel/traps.c b/arch/i386/kernel/traps.c index e6b5309e70f..57772a18c39 100644 --- a/arch/i386/kernel/traps.c +++ b/arch/i386/kernel/traps.c @@ -152,7 +152,7 @@ void dump_trace(struct task_struct *task, struct pt_regs *regs, if (!stack) { unsigned long dummy; stack = &dummy; - if (task && task != current) + if (task != current) stack = (unsigned long *)task->thread.esp; }