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 DynamicTablesPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
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 DynamicTablesPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Serialize DynamicTablesPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Stream DynamicTablesPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
String DynamicTablesPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Tree DynamicTablesPkg: Fix some spelling mistakes found by cspell 2024-08-01 19:53:47 +00:00
Utils DynamicTablesPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
AmlCoreInterface.h DynamicTablesPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
AmlDefines.h DynamicTablesPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
AmlInclude.h DynamicTablesPkg: AmlLib definitions 2020-08-13 18:00:06 +00:00
AmlLib.inf DynamicTablesPkg: Exempt some _CPC field from checks 2024-01-29 16:47:03 +00:00
AmlNodeDefines.h DynamicTablesPkg: Remove duplicated words 2022-12-13 14:30:20 +00:00