Author: mmacy
Date: Sat May 19 03:57:41 2018
New Revision: 333834
URL: https://svnweb.freebsd.org/changeset/base/333834

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

Modified:
  head/sys/kern/kern_sig.c

Modified: head/sys/kern/kern_sig.c
==============================================================================
--- head/sys/kern/kern_sig.c    Sat May 19 03:56:39 2018        (r333833)
+++ head/sys/kern/kern_sig.c    Sat May 19 03:57:41 2018        (r333834)
@@ -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);
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to