diff options
author | Jeff Roberson <jeff@FreeBSD.org> | 2003-04-01 09:07:36 +0000 |
---|---|---|
committer | Jeff Roberson <jeff@FreeBSD.org> | 2003-04-01 09:07:36 +0000 |
commit | c9dfa2e08b7060929dcad141257ac52f0c24e9a4 (patch) | |
tree | 88d1490d4e7ac613c9ead929aff8b97d24b970cb /sys/kern/kern_sig.c | |
parent | 09bf42f50f261c76e6e9cdb3fa22cec11be88e58 (diff) | |
download | src-c9dfa2e08b7060929dcad141257ac52f0c24e9a4.tar.gz src-c9dfa2e08b7060929dcad141257ac52f0c24e9a4.zip |
- p will be unused in cursig() if INVARIANTS is not defined. Access it
through td->td_proc to avoid the unused variable.
Spotted by: Maxim Konovalov <maxim@macomnet.ru>
Notes
Notes:
svn path=/head/; revision=112932
Diffstat (limited to 'sys/kern/kern_sig.c')
-rw-r--r-- | sys/kern/kern_sig.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c index 116a6108aead..65a07d08e753 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -181,9 +181,7 @@ static int sigproptbl[NSIG] = { int cursig(struct thread *td) { - struct proc *p = td->td_proc; - - PROC_LOCK_ASSERT(p, MA_OWNED); + PROC_LOCK_ASSERT(td->td_proc, MA_OWNED); mtx_assert(&sched_lock, MA_NOTOWNED); return (SIGPENDING(td) ? issignal(td) : 0); } |