Skip to content

Commit

Permalink
x86: optimise page fault entry, cleanup
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johannes Weiner authored and Ingo Molnar committed Jan 21, 2009
1 parent 92181f1 commit fb746d0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion arch/x86/mm/fault.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fb746d0

Please sign in to comment.