diff options
author | Laszlo Ersek <lersek@redhat.com> | 2016-10-26 19:22:25 +0200 |
---|---|---|
committer | Laszlo Ersek <lersek@redhat.com> | 2016-10-27 11:10:59 +0200 |
commit | b1bc305cf4a725fdf5350e9d1c84941010829f37 (patch) | |
tree | 7955bfb752cd79e08391720360c1321499164d15 | |
parent | 10a82f7f9941907d9719a4113c8004c5b033a89a (diff) | |
download | edk2-b1bc305cf4a725fdf5350e9d1c84941010829f37.tar.gz edk2-b1bc305cf4a725fdf5350e9d1c84941010829f37.tar.bz2 edk2-b1bc305cf4a725fdf5350e9d1c84941010829f37.zip |
OvmfPkg/QemuVideoDxe: rebase to ARRAY_SIZE()
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>
-rw-r--r-- | OvmfPkg/QemuVideoDxe/Initialize.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OvmfPkg/QemuVideoDxe/Initialize.c b/OvmfPkg/QemuVideoDxe/Initialize.c index 98ca4f8488..d5d8cfef96 100644 --- a/OvmfPkg/QemuVideoDxe/Initialize.c +++ b/OvmfPkg/QemuVideoDxe/Initialize.c @@ -155,7 +155,7 @@ QEMU_VIDEO_CIRRUS_MODES QemuVideoCirrusModes[] = { };
#define QEMU_VIDEO_CIRRUS_MODE_COUNT \
- (sizeof (QemuVideoCirrusModes) / sizeof (QemuVideoCirrusModes[0]))
+ (ARRAY_SIZE (QemuVideoCirrusModes))
/**
Construct the valid video modes for QemuVideo.
@@ -247,7 +247,7 @@ QEMU_VIDEO_BOCHS_MODES QemuVideoBochsModes[] = { };
#define QEMU_VIDEO_BOCHS_MODE_COUNT \
- (sizeof (QemuVideoBochsModes) / sizeof (QemuVideoBochsModes[0]))
+ (ARRAY_SIZE (QemuVideoBochsModes))
EFI_STATUS
QemuVideoBochsModeSetup (
|