]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/C/Common/CommonLib.c
BaseTools/CommonLib: drop the use of MAX_ADDRESS
[mirror_edk2.git] / BaseTools / Source / C / Common / CommonLib.c
index 42dfa821624d4de40eda7b6fe1fdd7ffe5e59156..5c40fdb5fd491ac9eda8356cc9e5a2580b98f978 100644 (file)
@@ -1236,7 +1236,6 @@ InternalAllocateCopyPool (
   VOID  *Memory;\r
 \r
   ASSERT (Buffer != NULL);\r
   VOID  *Memory;\r
 \r
   ASSERT (Buffer != NULL);\r
-  ASSERT (AllocationSize <= (MAX_ADDRESS - (UINTN) Buffer + 1));\r
 \r
   Memory = malloc (AllocationSize);\r
   if (Memory != NULL) {\r
 \r
   Memory = malloc (AllocationSize);\r
   if (Memory != NULL) {\r