- 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:
parent
09bf42f50f
commit
c9dfa2e08b
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user