Commit 48462620 authored by Osama Abdelkader's avatar Osama Abdelkader Committed by Will Deacon
Browse files

arm64: simplify arch_uprobe_xol_was_trapped return



convert arch_uprobe_xol_was_trapped() from explicit if/return true
return false pattern to direct boolean expression return in
arch/arm64/kernel/probes/uprobes.c

Signed-off-by: default avatarOsama Abdelkader <osama.abdelkader@gmail.com>
Reviewed-by: default avatarAnshuman Khandual <anshuman.khandual@arm.com>
Acked-by: default avatarMasami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: default avatarWill Deacon <will@kernel.org>
parent 8f0b4cce
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -103,10 +103,7 @@ bool arch_uprobe_xol_was_trapped(struct task_struct *t)
	 * insn itself is trapped, then detect the case with the help of
	 * invalid fault code which is being set in arch_uprobe_pre_xol
	 */
	if (t->thread.fault_code != UPROBE_INV_FAULT_CODE)
		return true;

	return false;
	return t->thread.fault_code != UPROBE_INV_FAULT_CODE;
}

bool arch_uprobe_skip_sstep(struct arch_uprobe *auprobe, struct pt_regs *regs)