From: Laszlo Ersek Date: Wed, 26 Oct 2016 12:14:47 +0000 (+0200) Subject: OvmfPkg/PlatformBootManagerLib: remove module-local ARRAY_SIZE macro X-Git-Tag: edk2-stable201903~5474 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=e2c78bec3f898b79b81fe9c7e49aa536a5695324;p=mirror_edk2.git OvmfPkg/PlatformBootManagerLib: remove module-local ARRAY_SIZE macro Rely on the central macro definition from "MdePkg/Include/Base.h" instead. Cc: Jordan Justen Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen --- diff --git a/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c b/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c index 16618a8f57..66ee590f42 100644 --- a/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c +++ b/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c @@ -37,13 +37,6 @@ CONST UINT8 PciHostIrqs[] = { 0x0a, 0x0a, 0x0b, 0x0b }; -// -// Array Size macro -// -#ifndef ARRAY_SIZE -#define ARRAY_SIZE(array) (sizeof (array) / sizeof (array[0])) -#endif - // // Type definitions //