From: Jan Janssen Date: Thu, 13 Jan 2022 12:47:39 +0000 (+0100) Subject: boot: Use FreePool from boot services directly X-Git-Tag: v251-rc1~533^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F22111%2Fhead;p=thirdparty%2Fsystemd.git boot: Use FreePool from boot services directly This should hopefully allow the compiler to optimize this a bit even when gnu-efi is not compiled with LTO. --- diff --git a/src/boot/efi/util.h b/src/boot/efi/util.h index 0c477fccf13..9e8db3e7c9c 100644 --- a/src/boot/efi/util.h +++ b/src/boot/efi/util.h @@ -79,7 +79,7 @@ static inline void free_poolp(void *p) { if (!q) return; - FreePool(q); + (void) BS->FreePool(q); } #define _cleanup_freepool_ _cleanup_(free_poolp)