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>
This commit is contained in:
Laszlo Ersek 2016-10-26 19:22:25 +02:00
parent 10a82f7f99
commit b1bc305cf4
1 changed files with 2 additions and 2 deletions

View File

@ -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 (