OvmfPkg/QemuVideoDxe: drop useless QEMU_VIDEO_MODE_DATA.RefreshRate

This field is never used beyond assignment and debug-logging. Remove it.

Cc: Jordan Justen <jordan.l.justen@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
Laszlo Ersek 2016-10-12 10:00:10 +02:00
parent 5b54c92a65
commit 0ccc97e9c8
2 changed files with 4 additions and 9 deletions

View File

@ -186,15 +186,13 @@ QemuVideoCirrusModeSetup (
ModeData->HorizontalResolution = VideoMode->Width; ModeData->HorizontalResolution = VideoMode->Width;
ModeData->VerticalResolution = VideoMode->Height; ModeData->VerticalResolution = VideoMode->Height;
ModeData->ColorDepth = VideoMode->ColorDepth; ModeData->ColorDepth = VideoMode->ColorDepth;
ModeData->RefreshRate = VideoMode->RefreshRate;
DEBUG ((EFI_D_INFO, DEBUG ((EFI_D_INFO,
"Adding Mode %d as Cirrus Internal Mode %d: %dx%d, %d-bit, %d Hz\n", "Adding Mode %d as Cirrus Internal Mode %d: %dx%d, %d-bit\n",
(INT32) (ModeData - Private->ModeData), (INT32) (ModeData - Private->ModeData),
ModeData->InternalModeIndex, ModeData->InternalModeIndex,
ModeData->HorizontalResolution, ModeData->HorizontalResolution,
ModeData->VerticalResolution, ModeData->VerticalResolution,
ModeData->ColorDepth, ModeData->ColorDepth
ModeData->RefreshRate
)); ));
ModeData ++ ; ModeData ++ ;
@ -330,15 +328,13 @@ QemuVideoBochsModeSetup (
ModeData->HorizontalResolution = VideoMode->Width; ModeData->HorizontalResolution = VideoMode->Width;
ModeData->VerticalResolution = VideoMode->Height; ModeData->VerticalResolution = VideoMode->Height;
ModeData->ColorDepth = VideoMode->ColorDepth; ModeData->ColorDepth = VideoMode->ColorDepth;
ModeData->RefreshRate = 60;
DEBUG ((EFI_D_INFO, DEBUG ((EFI_D_INFO,
"Adding Mode %d as Bochs Internal Mode %d: %dx%d, %d-bit, %d Hz\n", "Adding Mode %d as Bochs Internal Mode %d: %dx%d, %d-bit\n",
(INT32) (ModeData - Private->ModeData), (INT32) (ModeData - Private->ModeData),
ModeData->InternalModeIndex, ModeData->InternalModeIndex,
ModeData->HorizontalResolution, ModeData->HorizontalResolution,
ModeData->VerticalResolution, ModeData->VerticalResolution,
ModeData->ColorDepth, ModeData->ColorDepth
ModeData->RefreshRate
)); ));
ModeData ++ ; ModeData ++ ;

View File

@ -56,7 +56,6 @@ typedef struct {
UINT32 HorizontalResolution; UINT32 HorizontalResolution;
UINT32 VerticalResolution; UINT32 VerticalResolution;
UINT32 ColorDepth; UINT32 ColorDepth;
UINT32 RefreshRate;
} QEMU_VIDEO_MODE_DATA; } QEMU_VIDEO_MODE_DATA;
#define PIXEL_RED_SHIFT 0 #define PIXEL_RED_SHIFT 0