git: 24792b0f667d - stable/13 - sched_ule: Eliminate a superfluous local variable in tdq_move()

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Mon, 18 Jul 2022 13:21:44 UTC
The branch stable/13 has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=24792b0f667dccff4a5376770c97db55a76ad227

commit 24792b0f667dccff4a5376770c97db55a76ad227
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2022-07-04 23:05:59 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2022-07-18 13:07:46 +0000

    sched_ule: Eliminate a superfluous local variable in tdq_move()
    
    No functional change intended.
    
    Sponsored by:   The FreeBSD Foundation
    
    (cherry picked from commit 35dd6d6cb56209b49c055253dac549d8426f1003)
---
 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 8f30c1f1cb89..0088fc68fa98 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);