git: 72ff256c51cd - main - sched_4bsd: Remove unused variables.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 12 Apr 2022 21:59:36 UTC
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=72ff256c51cd4ac4b0ec5a56ef0554ed8e7810eb
commit 72ff256c51cd4ac4b0ec5a56ef0554ed8e7810eb
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-12 21:58:59 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-04-12 21:58:59 +0000
sched_4bsd: Remove unused variables.
---
sys/kern/sched_4bsd.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/sys/kern/sched_4bsd.c b/sys/kern/sched_4bsd.c
index fa6810eb0526..654d0a15037d 100644
--- a/sys/kern/sched_4bsd.c
+++ b/sys/kern/sched_4bsd.c
@@ -987,13 +987,9 @@ sched_switch(struct thread *td, int flags)
{
struct thread *newtd;
struct mtx *tmtx;
- struct td_sched *ts;
- struct proc *p;
int preempted;
tmtx = &sched_lock;
- ts = td_get_sched(td);
- p = td->td_proc;
THREAD_LOCK_ASSERT(td, MA_OWNED);