]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkModulePkg/Core/Pei/Dispatcher/Dispatcher.c
Remove the dead files.
[mirror_edk2.git] / EdkModulePkg / Core / Pei / Dispatcher / Dispatcher.c
index 0bec576e6d9c8ba4a8ae6bd7cbcc3311342a238d..1eb5a4a0204486ce76c6def7dae81ecbed425855 100644 (file)
@@ -448,12 +448,7 @@ Returns:
   // Check if the total number of PEIMs exceed the bitmap.\r
   // CurrentPeim is 0-based\r
   //\r
-  DEBUG_CODE (\r
-    if (CurrentPeim > (sizeof (*DispatchedPeimBitMap) * 8 - 1)) {\r
-      ASSERT_EFI_ERROR (EFI_OUT_OF_RESOURCES);\r
-    }\r
-  );\r
-\r
+  ASSERT (CurrentPeim < (sizeof (*DispatchedPeimBitMap) * 8));\r
   *DispatchedPeimBitMap |= (1 << CurrentPeim);\r
   return;\r
 }\r