summaryrefslogtreecommitdiffstats
path: root/DynamicTablesPkg/Include
diff options
context:
space:
mode:
authorSudeep Holla <sudeep.holla@arm.com>2024-10-23 13:40:54 +0100
committerSami Mujawar <sami.mujawar@arm.com>2024-10-24 11:37:22 +0100
commit8af71632d6552e637a2ce29c579c70ccc562ba7b (patch)
treee0f6ed3619ffe060c13510b9ba4b3e193903aa8d /DynamicTablesPkg/Include
parent9e56b4373bf45041ed95362424b446398e0a8dc5 (diff)
downloadedk2-8af71632d6552e637a2ce29c579c70ccc562ba7b.tar.gz
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>
Diffstat (limited to 'DynamicTablesPkg/Include')
0 files changed, 0 insertions, 0 deletions