Skip to content

Commit 80adacc

Browse files
Dan CarpenterKAGA-KOKO
authored andcommitted
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 <dan.carpenter@linaro.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://patch.msgid.link/aRxP3YcwscrP1BU_@stanley.mountain
1 parent 1fe4002 commit 80adacc

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

include/linux/rseq.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ static inline void rseq_force_update(void)
126126
*/
127127
static inline void rseq_virt_userspace_exit(void)
128128
{
129-
if (current->rseq.event.sched_switch)
130129
/*
131130
* The generic optimization for deferring RSEQ updates until the next
132131
* exit relies on having a dedicated TIF_RSEQ.

0 commit comments

Comments
 (0)