Remove an "#ifdef DIAGNOSTIC", KASSERT() always conumes its expression.
This commit is contained in:
parent
ec0ae0ee8b
commit
9107f7115a
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pmap.c,v 1.312 2020/03/14 14:05:43 ad Exp $ */
|
||||
/* $NetBSD: pmap.c,v 1.313 2022/01/01 11:56:15 hannken Exp $ */
|
||||
/*
|
||||
*
|
||||
* Copyright (C) 1996-1999 Eduardo Horvath.
|
||||
|
@ -26,7 +26,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.312 2020/03/14 14:05:43 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.313 2022/01/01 11:56:15 hannken Exp $");
|
||||
|
||||
#undef NO_VCACHE /* Don't forget the locked TLB in dostart */
|
||||
#define HWREF
|
||||
|
@ -1537,9 +1537,7 @@ pmap_destroy(struct pmap *pm)
|
|||
|
||||
/* we could be a little smarter and leave pages zeroed */
|
||||
while ((pg = TAILQ_FIRST(&pm->pm_ptps)) != NULL) {
|
||||
#ifdef DIAGNOSTIC
|
||||
struct vm_page_md *md = VM_PAGE_TO_MD(pg);
|
||||
#endif
|
||||
|
||||
TAILQ_REMOVE(&pm->pm_ptps, pg, pageq.queue);
|
||||
KASSERT(md->mdpg_pvh.pv_pmap == NULL);
|
||||
|
|
Loading…
Reference in New Issue