From cdee6ffed192311f247e7bc918102e8d9e114b4e Mon Sep 17 00:00:00 2001 From: cognet Date: Wed, 25 Jun 2003 13:28:32 +0000 Subject: At this point targp will always be NULL, so remove the useless if. --- sys/kern/kern_prot.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'sys/kern/kern_prot.c') diff --git a/sys/kern/kern_prot.c b/sys/kern/kern_prot.c index 6a81296..1ef1ee8 100644 --- a/sys/kern/kern_prot.c +++ b/sys/kern/kern_prot.c @@ -404,8 +404,6 @@ setpgid(struct thread *td, register struct setpgid_args *uap) sx_xlock(&proctree_lock); if (uap->pid != 0 && uap->pid != curp->p_pid) { if ((targp = pfind(uap->pid)) == NULL) { - if (targp) - PROC_UNLOCK(targp); error = ESRCH; goto done; } -- cgit v1.1