mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
efi_loader: typedef struct efi_object *efi_handle_t
All our handles point to a struct efi_object. So let's define the efi_handle_t accordingly. This helps us to discover coding errors much more easily. This becomes evident by the corrections to the usage of handles in this patch. Rename variable image_handle to image_obj where applicable. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
committed by
Alexander Graf
parent
d8b2216c87
commit
faea104105
@@ -69,7 +69,7 @@ int efi_init(struct efi_priv *priv, const char *banner, efi_handle_t image,
|
||||
efi_putc(priv, ' ');
|
||||
|
||||
ret = boot->open_protocol(priv->parent_image, &loaded_image_guid,
|
||||
(void **)&loaded_image, &priv->parent_image,
|
||||
(void **)&loaded_image, priv->parent_image,
|
||||
NULL, EFI_OPEN_PROTOCOL_GET_PROTOCOL);
|
||||
if (ret) {
|
||||
efi_puts(priv, "Failed to get loaded image protocol\n");
|
||||
|
Reference in New Issue
Block a user