summaryrefslogtreecommitdiffstats
path: root/OvmfPkg
diff options
context:
space:
mode:
authorLaszlo Ersek <lersek@redhat.com>2016-10-12 10:00:10 +0200
committerLaszlo Ersek <lersek@redhat.com>2016-10-16 21:42:16 +0200
commit0ccc97e9c858cac2b64e0ecd18352af255669e16 (patch)
tree65ddb5b687fba15c9d686735619c8d526f480981 /OvmfPkg
parent5b54c92a6537a9b8650c054348702909c5f57f4f (diff)
downloadedk2-0ccc97e9c858cac2b64e0ecd18352af255669e16.tar.gz
edk2-0ccc97e9c858cac2b64e0ecd18352af255669e16.tar.bz2
edk2-0ccc97e9c858cac2b64e0ecd18352af255669e16.zip
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>
Diffstat (limited to 'OvmfPkg')
-rw-r--r--OvmfPkg/QemuVideoDxe/Initialize.c12
-rw-r--r--OvmfPkg/QemuVideoDxe/Qemu.h1
2 files changed, 4 insertions, 9 deletions
diff --git a/OvmfPkg/QemuVideoDxe/Initialize.c b/OvmfPkg/QemuVideoDxe/Initialize.c
index 9e0c3aa09f..b12253ba58 100644
--- a/OvmfPkg/QemuVideoDxe/Initialize.c
+++ b/OvmfPkg/QemuVideoDxe/Initialize.c
@@ -186,15 +186,13 @@ QemuVideoCirrusModeSetup (
ModeData->HorizontalResolution = VideoMode->Width;
ModeData->VerticalResolution = VideoMode->Height;
ModeData->ColorDepth = VideoMode->ColorDepth;
- ModeData->RefreshRate = VideoMode->RefreshRate;
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),
ModeData->InternalModeIndex,
ModeData->HorizontalResolution,
ModeData->VerticalResolution,
- ModeData->ColorDepth,
- ModeData->RefreshRate
+ ModeData->ColorDepth
));
ModeData ++ ;
@@ -330,15 +328,13 @@ QemuVideoBochsModeSetup (
ModeData->HorizontalResolution = VideoMode->Width;
ModeData->VerticalResolution = VideoMode->Height;
ModeData->ColorDepth = VideoMode->ColorDepth;
- ModeData->RefreshRate = 60;
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),
ModeData->InternalModeIndex,
ModeData->HorizontalResolution,
ModeData->VerticalResolution,
- ModeData->ColorDepth,
- ModeData->RefreshRate
+ ModeData->ColorDepth
));
ModeData ++ ;
diff --git a/OvmfPkg/QemuVideoDxe/Qemu.h b/OvmfPkg/QemuVideoDxe/Qemu.h
index 5844bc404c..7c1f80c772 100644
--- a/OvmfPkg/QemuVideoDxe/Qemu.h
+++ b/OvmfPkg/QemuVideoDxe/Qemu.h
@@ -56,7 +56,6 @@ typedef struct {
UINT32 HorizontalResolution;
UINT32 VerticalResolution;
UINT32 ColorDepth;
- UINT32 RefreshRate;
} QEMU_VIDEO_MODE_DATA;
#define PIXEL_RED_SHIFT 0