]> git.proxmox.com Git - mirror_edk2.git/commitdiff
DynamicTablesPkg: Remove redundant frame count check
authorSami Mujawar <sami.mujawar@arm.com>
Tue, 9 Jul 2019 15:40:43 +0000 (16:40 +0100)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Sun, 29 Mar 2020 16:53:35 +0000 (16:53 +0000)
Removing GT Block frame count check from AddGTBlockTimerFrames()
as this is already validated in BuildGtdtTable().

Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
Reviewed-by: Alexei Fedorov <Alexei.Fedorov@arm.com>
DynamicTablesPkg/Library/Acpi/Arm/AcpiGtdtLibArm/GtdtGenerator.c

index 0e996698887aefca8a7240fc27fe3cb9324fd3e2..c109f2ac207311646e5a4ad3aa465b1c2883e465 100644 (file)
@@ -259,16 +259,6 @@ AddGTBlockTimerFrames (
   ASSERT (GtBlockFrame != NULL);\r
   ASSERT (GTBlockTimerFrameList != NULL);\r
 \r
   ASSERT (GtBlockFrame != NULL);\r
   ASSERT (GTBlockTimerFrameList != NULL);\r
 \r
-  if (GTBlockFrameCount > 8) {\r
-    DEBUG ((\r
-      DEBUG_ERROR,\r
-      "ERROR: GTDT: GT Block Frame Count %d is greater than 8\n",\r
-      GTBlockFrameCount\r
-      ));\r
-    ASSERT (GTBlockFrameCount <= 8);\r
-    return EFI_INVALID_PARAMETER;\r
-  }\r
-\r
   IsFrameNumberDuplicated = FindDuplicateValue (\r
                               GTBlockTimerFrameList,\r
                               GTBlockFrameCount,\r
   IsFrameNumberDuplicated = FindDuplicateValue (\r
                               GTBlockTimerFrameList,\r
                               GTBlockFrameCount,\r