OvmfPkg/QemuVideoDxe: simplify InitializeBochsGraphicsMode
struct QEMU_VIDEO_MODE_DATA has all the data needed to set the video mode, there is no need to take the extra indirection and use struct QEMU_VIDEO_BOCHS_MODES. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Acked-by: Ard Biesheuvel <ardb@kernel.org>
This commit is contained in:
committed by
mergify[bot]
parent
929804b172
commit
7f25ddbc03
@@ -177,7 +177,7 @@ Routine Description:
|
||||
break;
|
||||
case QEMU_VIDEO_BOCHS_MMIO:
|
||||
case QEMU_VIDEO_BOCHS:
|
||||
InitializeBochsGraphicsMode (Private, &QemuVideoBochsModes[ModeData->InternalModeIndex]);
|
||||
InitializeBochsGraphicsMode (Private, ModeData);
|
||||
break;
|
||||
default:
|
||||
ASSERT (FALSE);
|
||||
|
Reference in New Issue
Block a user