audk/DynamicTablesPkg/Library/Acpi/Arm
Sami Mujawar dd7523b5b1 DynamicTablesPkg: SRAT: Fix uninitialized memory usage
On enabling the /analyse option the VS2017 compiler
reports: warning C6001: Using uninitialized memory.

This warning is reported for the Status variable in
AddGenericInitiatorAffinity() as it is not initialised
to a default value. This condition is only valid if
GenInitAffCount is equal to 0. Since GenInitAffCount
is already checked in BuildSratTable() this condition
can never happen.

The value of the Status variable is returned in
failure cases from appropriate locations in
AddGenericInitiatorAffinity(). The only case
where Status value is being used un-initialised
is the return statement at the end of
AddGenericInitiatorAffinity().

Therefore, to fix this issue EFI_SUCCESS can be
safely returned instead of returning the Status
variable at the end of the function.

Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
Reviewed-by: Alexei Fedorov <Alexei.Fedorov@arm.com>
2020-03-31 21:22:39 +00:00
..
AcpiDbg2LibArm DynamicTablesPkg: Serial debug port initialisation 2020-03-29 16:53:35 +00:00
AcpiFadtLibArm DynamicTablesPkg: Fix entry point param definition 2020-03-29 16:53:35 +00:00
AcpiGtdtLibArm DynamicTablesPkg: Remove redundant frame count check 2020-03-29 16:53:35 +00:00
AcpiIortLibArm DynamicTablesPkg: IORT: Fix uninitialized memory usage 2020-03-29 16:53:35 +00:00
AcpiMadtLibArm DynamicTablesPkg: Fix entry point param definition 2020-03-29 16:53:35 +00:00
AcpiMcfgLibArm DynamicTablesPkg: Fix entry point param definition 2020-03-29 16:53:35 +00:00
AcpiPpttLibArm DynamicTablesPkg: PPTT: Fix uninitialized memory usage 2020-03-29 16:53:35 +00:00
AcpiRawLibArm DynamicTablesPkg: Fix entry point param definition 2020-03-29 16:53:35 +00:00
AcpiSpcrLibArm DynamicTablesPkg: Fix serial port subtype warning 2020-03-29 16:53:35 +00:00
AcpiSratLibArm DynamicTablesPkg: SRAT: Fix uninitialized memory usage 2020-03-31 21:22:39 +00:00