summaryrefslogtreecommitdiff
path: root/lib/efi
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2018-09-26 05:27:54 +0200
committerAlexander Graf <agraf@suse.de>2018-12-02 21:59:36 +0100
commitfaea1041054c355752dc61403fc885079daf015b (patch)
tree3103a7330b0755b671a6c4acad8c0c1049ac9d73 /lib/efi
parentd8b2216c879ca8cf42de05c986136be70faf154d (diff)
downloadu-boot-faea1041054c355752dc61403fc885079daf015b.tar.gz
u-boot-faea1041054c355752dc61403fc885079daf015b.tar.bz2
u-boot-faea1041054c355752dc61403fc885079daf015b.zip
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>
Diffstat (limited to 'lib/efi')
-rw-r--r--lib/efi/efi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/efi/efi.c b/lib/efi/efi.c
index c6639f96cc..2c6a50824f 100644
--- a/lib/efi/efi.c
+++ b/lib/efi/efi.c
@@ -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");