x86: optimise page fault entry, cleanup
authorJohannes Weiner <hannes@cmpxchg.org>
Wed, 21 Jan 2009 19:45:41 +0000 (20:45 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 21 Jan 2009 20:36:54 +0000 (21:36 +0100)
tsk is already assigned to current, drop the redundant second
assignment.

Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/mm/fault.c

index 033292dc9e214d96b28ff6154bca2af366b4b711..8f4b859a04b3ff95caabfcfce54523e3adc1c313 100644 (file)
@@ -419,7 +419,6 @@ static noinline void pgtable_bad(struct pt_regs *regs,
        printk(KERN_ALERT "%s: Corrupted page table at address %lx\n",
               tsk->comm, address);
        dump_pagetable(address);
-       tsk = current;
        tsk->thread.cr2 = address;
        tsk->thread.trap_no = 14;
        tsk->thread.error_code = error_code;