sched_ule: Eliminate a superfluous local variable in tdq_move()

No functional change intended.

MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Mark Johnston 2022-07-04 19:05:59 -04:00
parent b57be759d0
commit 35dd6d6cb5

View File

@ -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);