signotify: don't create a stack local that isn't used on non-debug builds

This commit is contained in:
Matt Macy 2018-05-19 03:57:41 +00:00
parent 46117e1f0c
commit ddd4d15ecd

View File

@ -605,11 +605,8 @@ cursig(struct thread *td)
void void
signotify(struct thread *td) signotify(struct thread *td)
{ {
struct proc *p;
p = td->td_proc; PROC_LOCK_ASSERT(td->td_proc, MA_OWNED);
PROC_LOCK_ASSERT(p, MA_OWNED);
if (SIGPENDING(td)) { if (SIGPENDING(td)) {
thread_lock(td); thread_lock(td);