From: Dan Carpenter Date: Tue, 18 Nov 2025 10:52:13 +0000 (+0300) Subject: rseq: Delete duplicate if statement in rseq_virt_userspace_exit() X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=80adaccf0e1c8c8fff44be2d959f6dba80af0491;p=thirdparty%2Flinux.git rseq: Delete duplicate if statement in rseq_virt_userspace_exit() This if statement is indented weirdly. It's a duplicate and doesn't affect runtime (beyond wasting a little time). Delete it. Signed-off-by: Dan Carpenter Signed-off-by: Thomas Gleixner Link: https://patch.msgid.link/aRxP3YcwscrP1BU_@stanley.mountain --- diff --git a/include/linux/rseq.h b/include/linux/rseq.h index b5e4803c4ebe4..bf8a6bf315f35 100644 --- a/include/linux/rseq.h +++ b/include/linux/rseq.h @@ -126,7 +126,6 @@ static inline void rseq_force_update(void) */ static inline void rseq_virt_userspace_exit(void) { - if (current->rseq.event.sched_switch) /* * The generic optimization for deferring RSEQ updates until the next * exit relies on having a dedicated TIF_RSEQ.