]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Remove redundant assignment of `p'.
authorEd Schouten <ed@FreeBSD.org>
Thu, 26 Feb 2009 12:12:34 +0000 (12:12 +0000)
committerEd Schouten <ed@FreeBSD.org>
Thu, 26 Feb 2009 12:12:34 +0000 (12:12 +0000)
commit2bbada90c87d3ba8505d0398233060a57b1731e9
treef51910089fa944d30fe80ae27738778d61efcaf0
parent64b0a21bf8219c99b82e50973d5588d32ff411c4
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
sys/kern/subr_prf.c