Commit d124e484 authored by Heiko Carstens's avatar Heiko Carstens Committed by Alexander Gordeev

s390/mm,fault: remove not needed tsk variable

tsk is only used as an intermediate variable for current. Remove tsk
and use current directly instead at the only place where it is used.
Signed-off-by: default avatarHeiko Carstens <hca@linux.ibm.com>
Signed-off-by: default avatarAlexander Gordeev <agordeev@linux.ibm.com>
parent 80df7d6a
...@@ -280,7 +280,6 @@ static void do_sigbus(struct pt_regs *regs) ...@@ -280,7 +280,6 @@ static void do_sigbus(struct pt_regs *regs)
static void do_exception(struct pt_regs *regs, int access) static void do_exception(struct pt_regs *regs, int access)
{ {
struct vm_area_struct *vma; struct vm_area_struct *vma;
struct task_struct *tsk;
unsigned long address; unsigned long address;
struct mm_struct *mm; struct mm_struct *mm;
enum fault_type type; enum fault_type type;
...@@ -289,7 +288,6 @@ static void do_exception(struct pt_regs *regs, int access) ...@@ -289,7 +288,6 @@ static void do_exception(struct pt_regs *regs, int access)
vm_fault_t fault; vm_fault_t fault;
bool is_write; bool is_write;
tsk = current;
/* /*
* The instruction that caused the program check has * The instruction that caused the program check has
* been nullified. Don't signal single step via SIGTRAP. * been nullified. Don't signal single step via SIGTRAP.
...@@ -297,7 +295,7 @@ static void do_exception(struct pt_regs *regs, int access) ...@@ -297,7 +295,7 @@ static void do_exception(struct pt_regs *regs, int access)
clear_thread_flag(TIF_PER_TRAP); clear_thread_flag(TIF_PER_TRAP);
if (kprobe_page_fault(regs, 14)) if (kprobe_page_fault(regs, 14))
return; return;
mm = tsk->mm; mm = current->mm;
address = get_fault_address(regs); address = get_fault_address(regs);
is_write = fault_is_write(regs); is_write = fault_is_write(regs);
type = get_fault_type(regs); type = get_fault_type(regs);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment