From: Sami Mujawar Date: Tue, 9 Jul 2019 15:40:43 +0000 (+0100) Subject: DynamicTablesPkg: Remove redundant frame count check X-Git-Tag: edk2-stable202005~269 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=effddeea3978d0fe5b85a310de73e0ea1625a931 DynamicTablesPkg: Remove redundant frame count check Removing GT Block frame count check from AddGTBlockTimerFrames() as this is already validated in BuildGtdtTable(). Signed-off-by: Sami Mujawar Reviewed-by: Alexei Fedorov --- diff --git a/DynamicTablesPkg/Library/Acpi/Arm/AcpiGtdtLibArm/GtdtGenerator.c b/DynamicTablesPkg/Library/Acpi/Arm/AcpiGtdtLibArm/GtdtGenerator.c index 0e99669888..c109f2ac20 100644 --- a/DynamicTablesPkg/Library/Acpi/Arm/AcpiGtdtLibArm/GtdtGenerator.c +++ b/DynamicTablesPkg/Library/Acpi/Arm/AcpiGtdtLibArm/GtdtGenerator.c @@ -259,16 +259,6 @@ AddGTBlockTimerFrames ( ASSERT (GtBlockFrame != NULL); ASSERT (GTBlockTimerFrameList != NULL); - if (GTBlockFrameCount > 8) { - DEBUG (( - DEBUG_ERROR, - "ERROR: GTDT: GT Block Frame Count %d is greater than 8\n", - GTBlockFrameCount - )); - ASSERT (GTBlockFrameCount <= 8); - return EFI_INVALID_PARAMETER; - } - IsFrameNumberDuplicated = FindDuplicateValue ( GTBlockTimerFrameList, GTBlockFrameCount,