diff mbox series

[1/3] efi_loader: shorten efi_bootmgr_release_uridp_resource()

Message ID 20240812205638.1732159-1-ilias.apalodimas@linaro.org
State New
Headers show
Series [1/3] efi_loader: shorten efi_bootmgr_release_uridp_resource() | expand

Commit Message

Ilias Apalodimas Aug. 12, 2024, 8:56 p.m. UTC
We use this function to clean up leftover resources when booting an
EFI HTTP boot image, but the name is unnecessary long.

Shorten it to efi_bootmgr_release_uridp()

Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
---
 lib/efi_loader/efi_bootmgr.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Comments

Simon Glass Sept. 1, 2024, 8:10 p.m. UTC | #1
On Mon, 12 Aug 2024 at 14:56, Ilias Apalodimas
<ilias.apalodimas@linaro.org> wrote:
>
> We use this function to clean up leftover resources when booting an
> EFI HTTP boot image, but the name is unnecessary long.
>
> Shorten it to efi_bootmgr_release_uridp()
>
> Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
> ---
>  lib/efi_loader/efi_bootmgr.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)

horray!

Reviewed-by: Simon Glass <sjg@chromium.org>
diff mbox series

Patch

diff --git a/lib/efi_loader/efi_bootmgr.c b/lib/efi_loader/efi_bootmgr.c
index 589d3996b680..181fc8775b96 100644
--- a/lib/efi_loader/efi_bootmgr.c
+++ b/lib/efi_loader/efi_bootmgr.c
@@ -380,12 +380,12 @@  err:
 }
 
 /**
- * efi_bootmgr_release_uridp_resource() - cleanup uri device path resource
+ * efi_bootmgr_release_uridp() - cleanup uri device path resource
  *
  * @ctx:	event context
  * Return:	status code
  */
-efi_status_t efi_bootmgr_release_uridp_resource(struct uridp_context *ctx)
+efi_status_t efi_bootmgr_release_uridp(struct uridp_context *ctx)
 {
 	efi_status_t ret = EFI_SUCCESS;
 
@@ -432,7 +432,7 @@  static void EFIAPI efi_bootmgr_image_return_notify(struct efi_event *event,
 	efi_status_t ret;
 
 	EFI_ENTRY("%p, %p", event, context);
-	ret = efi_bootmgr_release_uridp_resource(context);
+	ret = efi_bootmgr_release_uridp(context);
 	EFI_EXIT(ret);
 }
 
@@ -544,7 +544,7 @@  static efi_status_t try_load_from_uri_path(struct efi_device_path_uri *uridp,
 	return ret;
 
 err:
-	efi_bootmgr_release_uridp_resource(ctx);
+	efi_bootmgr_release_uridp(ctx);
 
 	return ret;
 }