i386: remove no longer needed atomic_load_ptr casts

This commit is contained in:
Mateusz Guzik 2020-02-14 23:17:37 +00:00
parent f50a2474b7
commit 4ef55e371a

View File

@ -976,7 +976,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);