diff mbox

[edk2,06/47] MdeModulePkg/RegularExpressionDxe: remove module-local ARRAY_SIZE macro

Message ID 20161026190504.9888-7-lersek@redhat.com
State Accepted
Commit 8f04ef300d25f0252cdf23c2cf96d076db15508a
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: Cecil Sheng <cecil.sheng@hpe.com>
Cc: Feng Tian <feng.tian@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>

---
 MdeModulePkg/Universal/RegularExpressionDxe/RegularExpressionDxe.h | 4 ----
 1 file changed, 4 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/MdeModulePkg/Universal/RegularExpressionDxe/RegularExpressionDxe.h b/MdeModulePkg/Universal/RegularExpressionDxe/RegularExpressionDxe.h
index 73ea92b5a178..0defa56e810c 100644
--- a/MdeModulePkg/Universal/RegularExpressionDxe/RegularExpressionDxe.h
+++ b/MdeModulePkg/Universal/RegularExpressionDxe/RegularExpressionDxe.h
@@ -26,10 +26,6 @@ 
 #include <Library/DebugLib.h>
 #include <Library/BaseLib.h>
 
-#ifndef ARRAY_SIZE
-#define ARRAY_SIZE(Array) (sizeof(Array) / sizeof(*Array))
-#endif
-
 /**
   Checks if the input string matches to the regular expression pattern.