mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-17 05:43:59 +00:00
Kill a dead variable
PR: 126223 Submitted by: Mateusz Guzik
This commit is contained in:
parent
049aa2e813
commit
f8062a0b0f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=181263
|
@ -243,12 +243,10 @@ kthread_add(void (*func)(void *), void *arg, struct proc *p,
|
|||
{
|
||||
va_list ap;
|
||||
struct thread *newtd, *oldtd;
|
||||
int error;
|
||||
|
||||
if (!proc0.p_stats)
|
||||
panic("kthread_add called too soon");
|
||||
|
||||
error = 0;
|
||||
/* If no process supplied, put it on proc0 */
|
||||
if (p == NULL) {
|
||||
p = &proc0;
|
||||
|
|
Loading…
Reference in a new issue