audk/DynamicTablesPkg/Library/Common/AmlLib
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
..
AmlDbgPrint
AmlEncoding DynamicTablesPkg: AmlLib: Fix CodeQL Issue 2024-10-07 07:33:52 +00:00
Api DynamicTablesPkg: AmlLib CONST cleanup 2024-07-01 09:40:09 +00:00
CodeGen DynamicTablesPkg: Drop the unnecessary comparision of UINT8 max value 2024-10-24 11:37:22 +01:00
NameSpace DynamicTablesPkg: AmlLib CONST cleanup 2024-07-01 09:40:09 +00:00
Parser DynamicTablesPkg: Fix some spelling mistakes found by cspell 2024-08-01 19:53:47 +00:00
ResourceData
Serialize
Stream
String
Tree DynamicTablesPkg: Fix some spelling mistakes found by cspell 2024-08-01 19:53:47 +00:00
Utils
AmlCoreInterface.h
AmlDefines.h
AmlInclude.h
AmlLib.inf DynamicTablesPkg: Exempt some _CPC field from checks 2024-01-29 16:47:03 +00:00
AmlNodeDefines.h