Remove unnecessary check for curthread == NULL.
This commit is contained in:
parent
8d3bcc2e7a
commit
46e3ee9584
@ -927,7 +927,7 @@ vm_fault_prefault(pmap_t pmap, vm_offset_t addra, vm_map_entry_t entry)
|
||||
vm_page_t m, mpte;
|
||||
vm_object_t object;
|
||||
|
||||
if (!curthread || (pmap != vmspace_pmap(curthread->td_proc->p_vmspace)))
|
||||
if (pmap != vmspace_pmap(curthread->td_proc->p_vmspace))
|
||||
return;
|
||||
|
||||
object = entry->object.vm_object;
|
||||
|
Loading…
Reference in New Issue
Block a user