]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg PeiCore: PeiInstallPeiMemory improper ASSERT test on second call
authorStar Zeng <star.zeng@intel.com>
Wed, 18 Nov 2015 10:13:31 +0000 (10:13 +0000)
committerlzeng14 <lzeng14@Edk2>
Wed, 18 Nov 2015 10:13:31 +0000 (10:13 +0000)
The ASSERT (PrivateData->PeiMemoryInstalled) in if (PrivateData->PeiMemoryInstalled)
condition is useless, it should be ASSERT (FALSE) to follow the code's expectation.

Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18887 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Core/Pei/Memory/MemoryServices.c

index 36bdc73ebdc59153a2b911c67e3940ca196df634..2f9b9dea3149202a0c0d7fcd13a5135bdb443e8d 100644 (file)
@@ -96,7 +96,7 @@ PeiInstallPeiMemory (
   // \r
   if (PrivateData->PeiMemoryInstalled) {\r
     DEBUG ((EFI_D_ERROR, "ERROR: PeiInstallPeiMemory is called more than once!\n"));\r
-    ASSERT (PrivateData->PeiMemoryInstalled);\r
+    ASSERT (FALSE);\r
     return EFI_SUCCESS;\r
   }\r
   \r