summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/XenBusDxe
diff options
context:
space:
mode:
authorLaszlo Ersek <lersek@redhat.com>2016-10-26 14:14:47 +0200
committerLaszlo Ersek <lersek@redhat.com>2016-10-27 10:50:17 +0200
commitf48c81f12a45186e2f9015040edf8ee64bbcbfe3 (patch)
treeda428b21be7f1133a9849f6b47cb4e6945eb0f59 /OvmfPkg/XenBusDxe
parente2c78bec3f898b79b81fe9c7e49aa536a5695324 (diff)
downloadedk2-f48c81f12a45186e2f9015040edf8ee64bbcbfe3.tar.gz
edk2-f48c81f12a45186e2f9015040edf8ee64bbcbfe3.tar.bz2
edk2-f48c81f12a45186e2f9015040edf8ee64bbcbfe3.zip
OvmfPkg/XenBusDxe: remove module-local ARRAY_SIZE macro
Rely on the central macro definition from "MdePkg/Include/Base.h" instead. Cc: Gary Lin <glin@suse.com> 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: Gary Lin <glin@suse.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Diffstat (limited to 'OvmfPkg/XenBusDxe')
-rw-r--r--OvmfPkg/XenBusDxe/XenStore.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/OvmfPkg/XenBusDxe/XenStore.c b/OvmfPkg/XenBusDxe/XenStore.c
index 9eeb6f54fb..1666c4b8f9 100644
--- a/OvmfPkg/XenBusDxe/XenStore.c
+++ b/OvmfPkg/XenBusDxe/XenStore.c
@@ -713,9 +713,6 @@ static XenStoreErrors gXenStoreErrors[] = {
{ XENSTORE_STATUS_EISCONN, "EISCONN" },
{ XENSTORE_STATUS_E2BIG, "E2BIG" }
};
-#ifndef ARRAY_SIZE
-#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
-#endif
STATIC
XENSTORE_STATUS