Author: kib
Date: Sun Aug 20 11:18:16 2017
New Revision: 322723
URL: https://svnweb.freebsd.org/changeset/base/322723

Log:
  Simplify the code.
  
  Noted by:     Oliver Pinter
  Sponsored by: The FreeBSD Foundation
  MFC after:    1 week

Modified:
  head/sys/amd64/amd64/trap.c

Modified: head/sys/amd64/amd64/trap.c
==============================================================================
--- head/sys/amd64/amd64/trap.c Sun Aug 20 10:08:45 2017        (r322722)
+++ head/sys/amd64/amd64/trap.c Sun Aug 20 11:18:16 2017        (r322723)
@@ -405,9 +405,8 @@ trap(struct trapframe *frame)
                case T_DTRACE_RET:
                        enable_intr();
                        fill_frame_regs(frame, &regs);
-                       if (dtrace_return_probe_ptr != NULL &&
-                           dtrace_return_probe_ptr(&regs) == 0)
-                               return;
+                       if (dtrace_return_probe_ptr != NULL)
+                               dtrace_return_probe_ptr(&regs);
                        return;
 #endif
                }
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to