Remove useless casts.
This commit is contained in:
parent
9251efac2e
commit
6fc96493ac
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=138114
@ -396,7 +396,7 @@ vsetslab(vm_offset_t va, uma_slab_t slab)
|
||||
{
|
||||
vm_page_t p;
|
||||
|
||||
p = PHYS_TO_VM_PAGE(pmap_kextract((vm_offset_t)va));
|
||||
p = PHYS_TO_VM_PAGE(pmap_kextract(va));
|
||||
p->object = (vm_object_t)slab;
|
||||
p->flags |= PG_SLAB;
|
||||
}
|
||||
@ -406,7 +406,7 @@ vsetobj(vm_offset_t va, vm_object_t obj)
|
||||
{
|
||||
vm_page_t p;
|
||||
|
||||
p = PHYS_TO_VM_PAGE(pmap_kextract((vm_offset_t)va));
|
||||
p = PHYS_TO_VM_PAGE(pmap_kextract(va));
|
||||
p->object = obj;
|
||||
p->flags &= ~PG_SLAB;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user