audk/DynamicTablesPkg/Library
Sudeep Holla 8af71632d6 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>
2024-10-24 11:37:22 +01:00
..
Acpi DynamicTablesPkg: Update X64 FADT XPm1aEvtBlk 2024-10-22 13:25:31 +00:00
Common DynamicTablesPkg: Drop the unnecessary comparision of UINT8 max value 2024-10-24 11:37:22 +01:00
DynamicTablesScmiInfoLib DynamicTablesPkg: Add DynamicTablesScmiInfoLib 2024-01-29 16:47:03 +00:00
FdtHwInfoParserLib DynamicTablesPkg/FdtHwInfoParserLib: add missing resolutions/includes 2024-09-27 07:40:06 +00:00