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:
@@ -9396,7 +9396,6 @@ 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;
|
||||
return (true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user