git: 35dd6d6cb562 - main - sched_ule: Eliminate a superfluous local variable in tdq_move()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 11 Jul 2022 19:58:59 UTC
The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=35dd6d6cb56209b49c055253dac549d8426f1003 commit 35dd6d6cb56209b49c055253dac549d8426f1003 Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2022-07-04 23:05:59 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2022-07-11 19:58:43 +0000 sched_ule: Eliminate a superfluous local variable in tdq_move() No functional change intended. MFC after: 1 week Sponsored by: The FreeBSD Foundation --- sys/kern/sched_ule.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c index 9fd592f9647b..13ad3cf32b30 100644 --- a/sys/kern/sched_ule.c +++ b/sys/kern/sched_ule.c @@ -963,15 +963,13 @@ static struct thread * tdq_move(struct tdq *from, struct tdq *to) { struct thread *td; - struct tdq *tdq; int cpu; TDQ_LOCK_ASSERT(from, MA_OWNED); TDQ_LOCK_ASSERT(to, MA_OWNED); - tdq = from; cpu = TDQ_ID(to); - td = tdq_steal(tdq, cpu); + td = tdq_steal(from, cpu); if (td == NULL) return (NULL);