1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-13 13:17:43 +03:00

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.
This commit is contained in:
Jan Janssen 2022-01-13 13:47:39 +01:00
parent 27c106bab8
commit 2d1ac308c5

View File

@ -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)