diff mbox

[edk2,08/47] OvmfPkg/PlatformBootManagerLib: remove module-local ARRAY_SIZE macro

Message ID 20161026190504.9888-9-lersek@redhat.com
State Accepted
Commit e2c78bec3f898b79b81fe9c7e49aa536a5695324
Headers show

Commit Message

Laszlo Ersek Oct. 26, 2016, 7:04 p.m. UTC
Rely on the central macro definition from "MdePkg/Include/Base.h" instead.

Cc: Jordan Justen <jordan.l.justen@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>

---
 OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c | 7 -------
 1 file changed, 7 deletions(-)

-- 
2.9.2


_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
diff mbox

Patch

diff --git a/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c b/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c
index 16618a8f57f0..66ee590f427e 100644
--- a/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c
+++ b/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c
@@ -38,13 +38,6 @@  CONST UINT8 PciHostIrqs[] = {
 };
 
 //
-// Array Size macro
-//
-#ifndef ARRAY_SIZE
-#define ARRAY_SIZE(array) (sizeof (array) / sizeof (array[0]))
-#endif
-
-//
 // Type definitions
 //