Explorar o código

x86: optimise page fault entry, cleanup

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>
Johannes Weiner %!s(int64=16) %!d(string=hai) anos
pai
achega
fb746d0e13
Modificáronse 1 ficheiros con 0 adicións e 1 borrados
  1. 0 1
      arch/x86/mm/fault.c

+ 0 - 1
arch/x86/mm/fault.c

@@ -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;