Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 May 2021 20:03:50 GMT
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: d3f7975fcb34 - main - thread_reap_barrier(): remove unused variable
Message-ID:  <202105312003.14VK3ohc000553@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by kib:

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

commit d3f7975fcb346ea28dde079a9c04cff5ef20a8d7
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2021-05-31 20:02:00 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2021-05-31 20:03:42 +0000

    thread_reap_barrier(): remove unused variable
    
    Noted by:       alc
    Sponsored by:   Mellanox Technologies/NVidia Networking
    MFC after:      1 week
---
 sys/kern/kern_thread.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c
index b5983eb4beb7..949095a4d34e 100644
--- a/sys/kern/kern_thread.c
+++ b/sys/kern/kern_thread.c
@@ -719,11 +719,8 @@ thread_reap_callout_cb(void *arg __unused)
 void
 thread_reap_barrier(void)
 {
-	struct thread *td;
 	struct task *t;
 
-	td = curthread;
-
 	/*
 	 * First do context switches to each CPU to ensure that all
 	 * PCPU pc_deadthreads are moved to zombie list.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202105312003.14VK3ohc000553>