mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-08 17:05:09 +02:00
DynamicTablesPkg: Drop the unnecessary comparision of UINT8 max value
Clang build breaks with the following error: | DynamicTablesPkg/Library/Common/AmlLib/CodeGen/AmlResourceDataCodeGen.c:1441:20: | error: result of comparison of constant 256 with expression of type 'UINT8' | (aka 'unsigned char') is always false [-Werror,-Wtautological-constant-out-of-range-compare] | 1441 | (AccessSize > 256)) || | | ~~~~~~~~~~ ^ ~~~ | 1 error generated. AccessSize is UINT8 and the maximum value for UINT8 is 255, so the comparision is unnecessary. Drop the check to fix the build. Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
This commit is contained in:
parent
9e56b4373b
commit
8af71632d6
@ -1437,9 +1437,7 @@ AmlCodeGenRdRegister (
|
||||
|
||||
// Cf. ACPI 6.4, s14.7 Referencing the PCC address space
|
||||
// The AccessSize represents the Subspace Id for the PCC address space.
|
||||
if (((AddressSpace == EFI_ACPI_6_4_PLATFORM_COMMUNICATION_CHANNEL) &&
|
||||
(AccessSize > 256)) ||
|
||||
((AddressSpace != EFI_ACPI_6_4_PLATFORM_COMMUNICATION_CHANNEL) &&
|
||||
if (((AddressSpace != EFI_ACPI_6_4_PLATFORM_COMMUNICATION_CHANNEL) &&
|
||||
(AccessSize > EFI_ACPI_6_4_QWORD)) ||
|
||||
((NameOpNode == NULL) && (NewRdNode == NULL)))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user