]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UefiCpuPkg/Library/MtrrLib/MtrrLib.c
UefiCpuPkg MTRR Library: Remove a buggy check logic in MtrrSetMemoryAttribute() that...
[mirror_edk2.git] / UefiCpuPkg / Library / MtrrLib / MtrrLib.c
index 5f1a22c5fd1cf963caca42190ba323af4392a081..bcf5e20459c3369e638a11513a5f9ab339abe9ec 100644 (file)
@@ -1026,16 +1026,6 @@ MtrrSetMemoryAttribute (
     }\r
   }\r
 \r
-  //\r
-  // Program Variable MTRRs\r
-  //\r
-  // Avoid hardcode here and read data dynamically\r
-  //\r
-  if (UsedMtrr >= FirmwareVariableMtrrCount) {\r
-    Status = RETURN_OUT_OF_RESOURCES;\r
-    goto Done;\r
-  }\r
-\r
   //\r
   // The memory type is the same with the type specified by\r
   // MTRR_LIB_IA32_MTRR_DEF_TYPE.\r