Remove a redundant L1_BLOCK == L2_BLOCK check
We have two checks for L1_BLOCK == L2_BLOCK. Remove one. Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
fdc418f15e
commit
51f5cafcdc
@ -1382,7 +1382,6 @@ pmap_extract_and_hold(pmap_t pmap, vm_offset_t va, vm_prot_t prot)
|
||||
|
||||
KASSERT(lvl > 0 && lvl <= 3,
|
||||
("pmap_extract_and_hold: Invalid level %d", lvl));
|
||||
CTASSERT(L1_BLOCK == L2_BLOCK);
|
||||
KASSERT((lvl == 3 && (tpte & ATTR_DESCR_MASK) == L3_PAGE) ||
|
||||
(lvl < 3 && (tpte & ATTR_DESCR_MASK) == L1_BLOCK),
|
||||
("pmap_extract_and_hold: Invalid pte at L%d: %lx", lvl,
|
||||
|
Loading…
Reference in New Issue
Block a user