efi: app: Use the same efi_free_pool() signature as loader
The app has a function of this name, but it does not return any value. Return success (always) so that we can use the same signature. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -662,6 +662,14 @@ void *efi_malloc(struct efi_priv *priv, int size, efi_status_t *retp);
|
||||
*/
|
||||
void efi_free(struct efi_priv *priv, void *ptr);
|
||||
|
||||
/**
|
||||
* efi_free_pool() - free memory from pool
|
||||
*
|
||||
* @buffer: start of memory to be freed
|
||||
* Return: status code
|
||||
*/
|
||||
efi_status_t efi_free_pool(void *buffer);
|
||||
|
||||
/**
|
||||
* efi_puts() - Write out a string to the EFI console
|
||||
*
|
||||
|
||||
@@ -891,14 +891,6 @@ efi_status_t efi_free_pages(uint64_t memory, efi_uintn_t pages);
|
||||
efi_status_t efi_allocate_pool(enum efi_memory_type pool_type,
|
||||
efi_uintn_t size, void **buffer);
|
||||
|
||||
/**
|
||||
* efi_free_pool() - free memory from pool
|
||||
*
|
||||
* @buffer: start of memory to be freed
|
||||
* Return: status code
|
||||
*/
|
||||
efi_status_t efi_free_pool(void *buffer);
|
||||
|
||||
/* Allocate and retrieve EFI memory map */
|
||||
efi_status_t efi_get_memory_map_alloc(efi_uintn_t *map_size,
|
||||
struct efi_mem_desc **memory_map);
|
||||
|
||||
@@ -190,11 +190,13 @@ void *efi_alloc(size_t size)
|
||||
return efi_malloc(priv, size, &ret);
|
||||
}
|
||||
|
||||
void efi_free_pool(void *ptr)
|
||||
efi_status_t efi_free_pool(void *ptr)
|
||||
{
|
||||
struct efi_priv *priv = efi_get_priv();
|
||||
|
||||
efi_free(priv, ptr);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* helper for debug prints.. efi_free_pool() the result. */
|
||||
|
||||
Reference in New Issue
Block a user