Commit:     028a690a1ebc8b825b6f42214a99a5abcf9aa4c6
Parent:     c673f1a9d994de501b674b2bb6a48bd5e912afe0
Author:     Jesper Juhl <[EMAIL PROTECTED]>
AuthorDate: Sat Jul 21 17:11:14 2007 +0200
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Sat Jul 21 18:37:12 2007 -0700

    i386: Remove unneeded test of 'task' in dump_trace()
    Remove unneeded test of task != NULL from
    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 <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Andi Kleen <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 arch/i386/kernel/traps.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/i386/kernel/traps.c b/arch/i386/kernel/traps.c
index e6b5309..57772a1 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 
        if (!stack) {
                unsigned long dummy;
                stack = &dummy;
-               if (task && task != current)
+               if (task != current)
                        stack = (unsigned long *)task->thread.esp;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to