diff mbox series

[v3,1/3] efi_loader: rename check_disk_has_default_file function

Message ID 20240112001923.976414-2-masahisa.kojima@linaro.org
State New
Headers show
Series fix auto-generated boot options | expand

Commit Message

Masahisa Kojima Jan. 12, 2024, 12:19 a.m. UTC
check_disk_has_default_file() function checks if the
architecture-specific default file exists in the blk
device, and fills the default file device path if it exists.

Rename the function name to fill_default_file_path().

Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org>
---
 lib/efi_loader/efi_bootmgr.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
diff mbox series

Patch

diff --git a/lib/efi_loader/efi_bootmgr.c b/lib/efi_loader/efi_bootmgr.c
index a032d3ae04..eda2619142 100644
--- a/lib/efi_loader/efi_bootmgr.c
+++ b/lib/efi_loader/efi_bootmgr.c
@@ -307,14 +307,14 @@  err:
 }
 
 /**
- * check_disk_has_default_file() - load the default file
+ * fill_default_file_path() - fill default file device path from blk device if default file exists
  *
  * @blk:	pointer to the UCLASS_BLK udevice
- * @dp:		pointer to default file device path
+ * @dp:		pointer to store the default file device path
  * Return:	status code
  */
-static efi_status_t check_disk_has_default_file(struct udevice *blk,
-						struct efi_device_path **dp)
+static efi_status_t fill_default_file_path(struct udevice *blk,
+					   struct efi_device_path **dp)
 {
 	efi_status_t ret;
 	struct udevice *partition;
@@ -361,7 +361,7 @@  static efi_status_t prepare_loaded_image(u16 *label, ulong addr, ulong size,
 	if (!ramdisk_blk)
 		return EFI_LOAD_ERROR;
 
-	ret = check_disk_has_default_file(ramdisk_blk, dp);
+	ret = fill_default_file_path(ramdisk_blk, dp);
 	if (ret != EFI_SUCCESS) {
 		log_info("Cannot boot from downloaded image\n");
 		goto err;