1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-18 02:19:39 +00:00

arm64 pmap: Eliminate an unnecessary conditional

Eliminate an unnecessary test whether a pointer is non-NULL from
pmap_bti_same().

Reviewed by:	dougm
This commit is contained in:
Alan Cox 2024-07-24 17:32:32 -05:00
parent cab41e0dd3
commit 98dd639c94

View File

@ -9396,8 +9396,7 @@ pmap_bti_same(pmap_t pmap, vm_offset_t sva, vm_offset_t eva, pt_entry_t *pte)
return (false);
rs = next_rs;
}
if (rs != NULL)
*pte |= ATTR_S1_GP;
*pte |= ATTR_S1_GP;
return (true);
}