From eefc497257629cf8bceac744664b6b010d3ebed7 Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Fri, 18 May 2007 21:10:08 +0000 Subject: [PATCH] Remove unnecessary assignment. CID: 2227 Found with: Coverity Prevent(tm) --- sys/kern/kern_fork.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c index fb388ca53e56..fd39e2a8a881 100644 --- a/sys/kern/kern_fork.c +++ b/sys/kern/kern_fork.c @@ -797,12 +797,10 @@ fork_exit(callout, arg, frame) * cpu_switch()'ed to, but when children start up they arrive here * instead, so we must do much the same things as mi_switch() would. */ - if ((td = PCPU_GET(deadthread))) { PCPU_SET(deadthread, NULL); thread_stash(td); } - td = curthread; mtx_unlock_spin(&sched_lock); /*