diff options
author | cognet <cognet@FreeBSD.org> | 2003-06-25 13:28:32 +0000 |
---|---|---|
committer | cognet <cognet@FreeBSD.org> | 2003-06-25 13:28:32 +0000 |
commit | cdee6ffed192311f247e7bc918102e8d9e114b4e (patch) | |
tree | a6b5a2e84a734d9d3014bb64e310d9a0e578b9aa /sys | |
parent | a21d6d1f965afcc57aa4e83216216dec19e5a34e (diff) | |
download | FreeBSD-src-cdee6ffed192311f247e7bc918102e8d9e114b4e.zip FreeBSD-src-cdee6ffed192311f247e7bc918102e8d9e114b4e.tar.gz |
At this point targp will always be NULL, so remove the useless if.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_prot.c | 2 |
1 files changed, 0 insertions, 2 deletions
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; } |