mirror of
https://github.com/ipxe/ipxe
synced 2025-12-23 21:41:43 +03:00
[efi] Avoid unnecessarily passing pointers to EFI_HANDLEs
efi_file_install() and efi_download_install() are both used to install onto existing handles. There is therefore no need to allow for each of their calls to InstallMultipleProtocolInterfaces() to create a new handle. By passing the handle directly (rather than a pointer to the handle), we avoid potential confusion (and erroneous debug message colours). Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -151,7 +151,7 @@ struct _IPXE_DOWNLOAD_PROTOCOL {
|
||||
0x3eaeaebd, 0xdecf, 0x493b, { 0x9b, 0xd1, 0xcd, 0xb2, 0xde, 0xca, 0xe7, 0x19 } \
|
||||
}
|
||||
|
||||
extern int efi_download_install ( EFI_HANDLE *device );
|
||||
extern void efi_download_uninstall ( EFI_HANDLE device );
|
||||
extern int efi_download_install ( EFI_HANDLE handle );
|
||||
extern void efi_download_uninstall ( EFI_HANDLE handle );
|
||||
|
||||
#endif /* _IPXE_DOWNLOAD_H */
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
extern int efi_file_install ( EFI_HANDLE *handle );
|
||||
extern int efi_file_install ( EFI_HANDLE handle );
|
||||
extern void efi_file_uninstall ( EFI_HANDLE handle );
|
||||
|
||||
#endif /* _IPXE_EFI_FILE_H */
|
||||
|
||||
Reference in New Issue
Block a user