efi_driver: simplify efi_uc_stop(), call efi_free_pool()
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 4 Oct 2022 10:50:51 +0000 (12:50 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 6 Oct 2022 20:54:57 +0000 (22:54 +0200)
We have exported efi_free_pool(). There is no need to use EFI_CALL().

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
lib/efi_driver/efi_uclass.c

index 5a285aa..aabee0e 100644 (file)
@@ -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");