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:
parent
b57be759d0
commit
35dd6d6cb5
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user