git: b66c1687213b - stable/13 - thread_single(): remove already checked conditional expression
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 24 Jun 2022 19:37:01 UTC
The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=b66c1687213b877cfc3c3790fcd399c17b58c0c4 commit b66c1687213b877cfc3c3790fcd399c17b58c0c4 Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2022-05-12 11:47:40 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2022-06-24 14:45:46 +0000 thread_single(): remove already checked conditional expression (cherry picked from commit b9009b1789b4641f5dbc9537eb0ca4759e22668e) --- sys/kern/kern_thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c index f55011fe9613..f10752cf682c 100644 --- a/sys/kern/kern_thread.c +++ b/sys/kern/kern_thread.c @@ -1234,7 +1234,7 @@ thread_single(struct proc *p, int mode) if (TD_IS_INHIBITED(td2)) { wakeup_swapper |= weed_inhib(mode, td2, p); #ifdef SMP - } else if (TD_IS_RUNNING(td2) && td != td2) { + } else if (TD_IS_RUNNING(td2)) { forward_signal(td2); thread_unlock(td2); #endif