diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index d9a3725ce829..d7492154f700 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/pmap.c @@ -770,7 +770,7 @@ pmap_extract(pmap_t pmap, vm_offset_t va) return 0; PMAP_LOCK(pmap); pdep = pmap_pde(pmap, va); - if (pdep) { + if (pdep != NULL) { pde = *pdep; if (pde) { if ((pde & PG_PS) != 0) { @@ -786,7 +786,6 @@ pmap_extract(pmap_t pmap, vm_offset_t va) } PMAP_UNLOCK(pmap); return 0; - } /* @@ -1480,7 +1479,6 @@ pmap_remove_entry(pmap_t pmap, vm_page_t m, vm_offset_t va) static void pmap_insert_entry(pmap_t pmap, vm_offset_t va, vm_page_t mpte, vm_page_t m) { - pv_entry_t pv; pv = get_pv_entry(); @@ -1492,7 +1490,6 @@ pmap_insert_entry(pmap_t pmap, vm_offset_t va, vm_page_t mpte, vm_page_t m) TAILQ_INSERT_TAIL(&pmap->pm_pvlist, pv, pv_plist); TAILQ_INSERT_TAIL(&m->md.pv_list, pv, pv_list); m->md.pv_list_count++; - vm_page_unlock_queues(); } diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c index 56c03d1b4308..befdeb11fef0 100644 --- a/sys/i386/i386/pmap.c +++ b/sys/i386/i386/pmap.c @@ -844,7 +844,6 @@ pmap_extract(pmap_t pmap, vm_offset_t va) } PMAP_UNLOCK(pmap); return 0; - } /* @@ -1548,7 +1547,6 @@ pmap_remove_entry(pmap_t pmap, vm_page_t m, vm_offset_t va) static void pmap_insert_entry(pmap_t pmap, vm_offset_t va, vm_page_t m) { - pv_entry_t pv; pv = get_pv_entry(); @@ -1559,7 +1557,6 @@ pmap_insert_entry(pmap_t pmap, vm_offset_t va, vm_page_t m) TAILQ_INSERT_TAIL(&pmap->pm_pvlist, pv, pv_plist); TAILQ_INSERT_TAIL(&m->md.pv_list, pv, pv_list); m->md.pv_list_count++; - vm_page_unlock_queues(); }