summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/amd64/amd64/trap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/amd64/trap.c b/sys/amd64/amd64/trap.c
index 2dda8f41b719..ecd2edc94a80 100644
--- a/sys/amd64/amd64/trap.c
+++ b/sys/amd64/amd64/trap.c
@@ -932,7 +932,7 @@ trap_user_dtrace(struct trapframe *frame, int (**hookp)(struct trapframe *))
{
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();
}