Fix unnecessary returns in san_(un)guard_pages_two_sided.

This commit is contained in:
Qi Wang 2021-12-30 14:23:44 -08:00 committed by Qi Wang
parent d660683d3d
commit 067c2da074

View File

@ -39,14 +39,13 @@ void san_init(ssize_t lg_san_uaf_align);
static inline void
san_guard_pages_two_sided(tsdn_t *tsdn, ehooks_t *ehooks, edata_t *edata,
emap_t *emap, bool remap) {
return san_guard_pages(tsdn, ehooks, edata, emap, true, true,
remap);
san_guard_pages(tsdn, ehooks, edata, emap, true, true, remap);
}
static inline void
san_unguard_pages_two_sided(tsdn_t *tsdn, ehooks_t *ehooks, edata_t *edata,
emap_t *emap) {
return san_unguard_pages(tsdn, ehooks, edata, emap, true, true);
san_unguard_pages(tsdn, ehooks, edata, emap, true, true);
}
static inline size_t