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

Mateusz Guzik mjg at FreeBSD.org
Fri Feb 14 23:17:04 UTC 2020


Author: mjg
Date: Fri Feb 14 23:17:03 2020
New Revision: 357942
URL: https://svnweb.freebsd.org/changeset/base/357942

Log:
  amd64: remove no longer needed atomic_load_ptr casts

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

Modified: head/sys/amd64/amd64/trap.c
==============================================================================
--- head/sys/amd64/amd64/trap.c	Fri Feb 14 23:16:29 2020	(r357941)
+++ head/sys/amd64/amd64/trap.c	Fri Feb 14 23:17:03 2020	(r357942)
@@ -932,7 +932,7 @@ trap_user_dtrace(struct trapframe *frame, int (**hookp
 {
 	int (*hook)(struct trapframe *);
 
-	hook = (int (*)(struct trapframe *))atomic_load_ptr(hookp);
+	hook = atomic_load_ptr(hookp);
 	enable_intr();
 	if (hook != NULL)
 		return ((hook)(frame) == 0);
@@ -1075,7 +1075,7 @@ amd64_syscall_ret_flush_l1d_check(int error)
 
 	if (error != EEXIST && error != EAGAIN && error != EXDEV &&
 	    error != ENOENT && error != ENOTCONN && error != EINPROGRESS) {
-		p = (void *)atomic_load_ptr(&syscall_ret_l1d_flush);
+		p = atomic_load_ptr(&syscall_ret_l1d_flush);
 		if (p != NULL)
 			p();
 	}


More information about the svn-src-head mailing list