From: Osama Abdelkader Date: Wed, 26 Nov 2025 22:31:30 +0000 (+0200) Subject: arm64: simplify arch_uprobe_xol_was_trapped return X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48462620960069b043cbbf809c48a2bfcffd9368;p=thirdparty%2Fkernel%2Flinux.git 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: Osama Abdelkader Reviewed-by: Anshuman Khandual Acked-by: Masami Hiramatsu (Google) Signed-off-by: Will Deacon --- diff --git a/arch/arm64/kernel/probes/uprobes.c b/arch/arm64/kernel/probes/uprobes.c index 941668800aeae..c451ca17a656e 100644 --- a/arch/arm64/kernel/probes/uprobes.c +++ b/arch/arm64/kernel/probes/uprobes.c @@ -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)