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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=333834

View File

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