Message ID | 20161026190504.9888-10-lersek@redhat.com |
---|---|
State | Accepted |
Commit | f48c81f12a45186e2f9015040edf8ee64bbcbfe3 |
Headers | show |
On Wed, Oct 26, 2016 at 09:04:26PM +0200, Laszlo Ersek wrote: > Rely on the central macro definition from "MdePkg/Include/Base.h" instead. > Reviewed-by: Gary Lin <glin@suse.com> > 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> > --- > OvmfPkg/XenBusDxe/XenStore.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/OvmfPkg/XenBusDxe/XenStore.c b/OvmfPkg/XenBusDxe/XenStore.c > index 9eeb6f54fb50..1666c4b8f90f 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 > -- > 2.9.2 > > > _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel
diff --git a/OvmfPkg/XenBusDxe/XenStore.c b/OvmfPkg/XenBusDxe/XenStore.c index 9eeb6f54fb50..1666c4b8f90f 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
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> --- OvmfPkg/XenBusDxe/XenStore.c | 3 --- 1 file changed, 3 deletions(-) -- 2.9.2 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel