kernel/efi: Drop device_set_path_end. Fixes booting Haiku with EFI under qemu

Change-Id: Iafa6cf064675d5f2beb134a6c6a906d137c70dc5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2040
Reviewed-by: Alex von Gluck IV <[email protected]>
This commit is contained in:
Jessica Hamilton
2019-12-22 10:59:34 +00:00
committed by Adrien Destugues
parent 485b5cf8bc
commit 51429f0417
-12
View File
@@ -43,16 +43,6 @@ static efi_guid LoadedImageGUID = EFI_LOADED_IMAGE_PROTOCOL_GUID;
static efi_guid DevicePathGUID = EFI_DEVICE_PATH_PROTOCOL_GUID;
static void
device_set_path_end(efi_device_path_protocol* path)
{
path->Type = DEVICE_PATH_END;
path->SubType = DEVICE_PATH_ENTIRE_END;
path->Length[0] = sizeof(efi_device_path_protocol);
path->Length[1] = 0;
}
static bool
device_path_end(efi_device_path_protocol* path)
{
@@ -324,8 +314,6 @@ add_boot_device_for_image(NodeList *devicesList)
return B_ERROR;
}
device_set_path_end(NextDevicePathNode(node));
size_t length = device_path_length(devicePath);
efi_device_path_protocol *savedDevicePath
= (efi_device_path_protocol*)malloc(length);