diff --git a/OvmfPkg/QemuVideoDxe/Gop.c b/OvmfPkg/QemuVideoDxe/Gop.c index 1b7db329b9..912947c2ff 100644 --- a/OvmfPkg/QemuVideoDxe/Gop.c +++ b/OvmfPkg/QemuVideoDxe/Gop.c @@ -114,10 +114,6 @@ Routine Description: Private = QEMU_VIDEO_PRIVATE_DATA_FROM_GRAPHICS_OUTPUT_THIS (This); - if (Private->HardwareNeedsStarting) { - return EFI_NOT_STARTED; - } - if (Info == NULL || SizeOfInfo == NULL || ModeNumber >= This->Mode->MaxMode) { return EFI_INVALID_PARAMETER; } @@ -209,8 +205,6 @@ Routine Description: This->Mode->Info ); - Private->HardwareNeedsStarting = FALSE; - return EFI_SUCCESS; } @@ -331,7 +325,6 @@ QemuVideoGraphicsOutputConstructor ( } Private->GraphicsOutput.Mode->MaxMode = (UINT32) Private->MaxMode; Private->GraphicsOutput.Mode->Mode = GRAPHICS_OUTPUT_INVALIDE_MODE_NUMBER; - Private->HardwareNeedsStarting = TRUE; Private->LineBuffer = NULL; // diff --git a/OvmfPkg/QemuVideoDxe/Qemu.h b/OvmfPkg/QemuVideoDxe/Qemu.h index 38d68729a0..78e182e6bf 100644 --- a/OvmfPkg/QemuVideoDxe/Qemu.h +++ b/OvmfPkg/QemuVideoDxe/Qemu.h @@ -111,7 +111,6 @@ typedef struct { UINTN MaxMode; QEMU_VIDEO_MODE_DATA *ModeData; UINT8 *LineBuffer; - BOOLEAN HardwareNeedsStarting; QEMU_VIDEO_VARIANT Variant; } QEMU_VIDEO_PRIVATE_DATA;