audk/DynamicTablesPkg/Library/Common/AmlLib/CodeGen
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
..
AmlCodeGen.c DynamicTablesPkg: Correct _PSD package format 2024-10-04 22:08:35 +00:00
AmlResourceDataCodeGen.c DynamicTablesPkg: Drop the unnecessary comparision of UINT8 max value 2024-10-24 11:37:22 +01:00
AmlResourceDataCodeGen.h DynamicTablesPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00