mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 10:39:08 +00:00
efi_loader: eliminate handle member
A pointer to a struct efi_object is a handle. We do not need any handle member in this structure. Let's eliminate it. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
faea104105
commit
fae0118e7a
7 changed files with 68 additions and 61 deletions
|
@ -328,15 +328,15 @@ efi_status_t efi_net_register(void)
|
|||
efi_add_handle(&netobj->parent);
|
||||
|
||||
/* Fill in object data */
|
||||
r = efi_add_protocol(netobj->parent.handle, &efi_net_guid,
|
||||
r = efi_add_protocol(&netobj->parent, &efi_net_guid,
|
||||
&netobj->net);
|
||||
if (r != EFI_SUCCESS)
|
||||
goto failure_to_add_protocol;
|
||||
r = efi_add_protocol(netobj->parent.handle, &efi_guid_device_path,
|
||||
r = efi_add_protocol(&netobj->parent, &efi_guid_device_path,
|
||||
efi_dp_from_eth());
|
||||
if (r != EFI_SUCCESS)
|
||||
goto failure_to_add_protocol;
|
||||
r = efi_add_protocol(netobj->parent.handle, &efi_pxe_guid,
|
||||
r = efi_add_protocol(&netobj->parent, &efi_pxe_guid,
|
||||
&netobj->pxe);
|
||||
if (r != EFI_SUCCESS)
|
||||
goto failure_to_add_protocol;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue