[PATCH 1/1] efi_driver: simplify efi_uc_stop(), call efi_free_pool()

Ilias Apalodimas ilias.apalodimas at linaro.org
Tue Oct 4 13:02:27 CEST 2022


On Tue, 4 Oct 2022 at 13:53, Heinrich Schuchardt
<heinrich.schuchardt at canonical.com> wrote:
>
> We have exported efi_free_pool(). There is no need to use EFI_CALL().
>
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
> ---
>  lib/efi_driver/efi_uclass.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/lib/efi_driver/efi_uclass.c b/lib/efi_driver/efi_uclass.c
> index 5a285aad89..6ccba07b29 100644
> --- a/lib/efi_driver/efi_uclass.c
> +++ b/lib/efi_driver/efi_uclass.c
> @@ -246,7 +246,7 @@ static efi_status_t EFIAPI efi_uc_stop(
>                                 goto out;
>                 }
>         }
> -       ret = EFI_CALL(systab.boottime->free_pool(entry_buffer));
> +       ret = efi_free_pool(entry_buffer);
>         if (ret != EFI_SUCCESS)
>                 log_err("Cannot free EFI memory pool\n");
>
> --
> 2.37.2
>

Reviewed-by: Ilias Apalodimas <ilias.apalodimas at linaro.org>


More information about the U-Boot mailing list