- 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>
This commit is contained in:
Jeff Roberson 2003-04-01 09:07:36 +00:00
parent 09bf42f50f
commit c9dfa2e08b

View File

@ -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);
}