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 <kallisti5@unixzen.com>
This commit is contained in:
Jessica Hamilton 2019-12-20 19:56:13 -06:00 committed by Adrien Destugues
parent 485b5cf8bc
commit 51429f0417
1 changed files with 0 additions and 12 deletions

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);