Remove redundant assignment of `p'.

`p' is already initialized with `td->td_proc'. Because td is always
curthread, it is safe to initialize it without any locks.

Found by:	LLVM's scan-build
This commit is contained in:
ed 2009-02-26 12:12:34 +00:00
parent 0f8dee0434
commit 280ef3dd23

View File

@ -137,7 +137,6 @@ uprintf(const char *fmt, ...)
return (0);
sx_slock(&proctree_lock);
p = td->td_proc;
PROC_LOCK(p);
if ((p->p_flag & P_CONTROLT) == 0) {
PROC_UNLOCK(p);