Skip to content

Commit

Permalink
arm64 pmap: Eliminate an unnecessary conditional
Browse files Browse the repository at this point in the history
Eliminate an unnecessary test whether a pointer is non-NULL from
pmap_bti_same().

Reviewed by:	dougm
  • Loading branch information
alcriceedu committed Jul 25, 2024
1 parent cab41e0 commit 98dd639
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sys/arm64/arm64/pmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 98dd639

Please sign in to comment.