* [PATCH] rseq: Delete duplicate if statement in rseq_virt_userspace_exit()
@ 2025-11-18 10:52 Dan Carpenter
2025-11-18 14:58 ` Thomas Gleixner
0 siblings, 1 reply; 2+ messages in thread
From: Dan Carpenter @ 2025-11-18 10:52 UTC (permalink / raw)
To: Thomas Gleixner
Cc: Peter Zijlstra (Intel), Ingo Molnar, Simon Schuster, linux-kernel,
kernel-janitors
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 <dan.carpenter@linaro.org>
---
This was introduced in commit 32034df66b5f ("rseq: Switch to TIF_RSEQ if
supported") but it doesn't cause a bug, so there is no Fixes tag.
include/linux/rseq.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/include/linux/rseq.h b/include/linux/rseq.h
index b5e4803c4ebe..bf8a6bf315f3 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.
--
2.51.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-11-18 14:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-18 10:52 [PATCH] rseq: Delete duplicate if statement in rseq_virt_userspace_exit() Dan Carpenter
2025-11-18 14:58 ` Thomas Gleixner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).