The branch main has been updated by alc: URL: https://cgit.FreeBSD.org/src/commit/?id=51c8cd7e1a331af9e46076148c2b57db3474d2dd
commit 51c8cd7e1a331af9e46076148c2b57db3474d2dd Author: Alan Cox <a...@freebsd.org> AuthorDate: 2025-06-01 17:34:00 +0000 Commit: Alan Cox <a...@freebsd.org> CommitDate: 2025-06-04 19:10:16 +0000 arm64 pmap: Eliminate an unnecessary NULL check The return value from pmap_l1_to_l2() cannot be NULL. --- sys/arm64/arm64/pmap.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sys/arm64/arm64/pmap.c b/sys/arm64/arm64/pmap.c index 625caf6ecd7e..f8e422848e94 100644 --- a/sys/arm64/arm64/pmap.c +++ b/sys/arm64/arm64/pmap.c @@ -4210,9 +4210,6 @@ pmap_remove1(pmap_t pmap, vm_offset_t sva, vm_offset_t eva, bool map_delete) va_next = eva; l2 = pmap_l1_to_l2(l1, sva); - if (l2 == NULL) - continue; - l3_paddr = pmap_load(l2); if ((l3_paddr & ATTR_DESCR_MASK) == L2_BLOCK) {