svn commit: r322723 - head/sys/amd64/amd64

Konstantin Belousov kib at FreeBSD.org
Sun Aug 20 11:18:18 UTC 2017


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
 		}


More information about the svn-src-all mailing list