mirror of https://github.com/acidanthera/audk.git
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:
parent
10a82f7f99
commit
b1bc305cf4
|
@ -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 (
|
||||
|
|
Loading…
Reference in New Issue