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:
parent
0f8dee0434
commit
280ef3dd23
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user