aboutsummaryrefslogtreecommitdiffstats
path: root/src/image
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2014-07-31 12:22:40 +0100
committerMichael Brown <mcb30@ipxe.org>2014-07-31 12:50:09 +0100
commit4a480f1d1565aa5972c4fc27ceec8ae4b9b1e86c (patch)
tree7d6cc53d78cc711330425810dd78320ab5aaaf81 /src/image
parent88bd71a27abb658a2ac12b54ed78c5cfd4c99f53 (diff)
downloadipxe-4a480f1d1565aa5972c4fc27ceec8ae4b9b1e86c.tar.gz
[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>
Diffstat (limited to 'src/image')
-rw-r--r--src/image/efi_image.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/image/efi_image.c b/src/image/efi_image.c
index 02ff8b2f8..45a68e530 100644
--- a/src/image/efi_image.c
+++ b/src/image/efi_image.c
@@ -157,14 +157,14 @@ static int efi_image_exec ( struct image *image ) {
}
/* Install file I/O protocols */
- if ( ( rc = efi_file_install ( &snpdev->handle ) ) != 0 ) {
+ if ( ( rc = efi_file_install ( snpdev->handle ) ) != 0 ) {
DBGC ( image, "EFIIMAGE %p could not install file protocol: "
"%s\n", image, strerror ( rc ) );
goto err_file_install;
}
/* Install iPXE download protocol */
- if ( ( rc = efi_download_install ( &snpdev->handle ) ) != 0 ) {
+ if ( ( rc = efi_download_install ( snpdev->handle ) ) != 0 ) {
DBGC ( image, "EFIIMAGE %p could not install iPXE download "
"protocol: %s\n", image, strerror ( rc ) );
goto err_download_install;