Fix the following ECC reported error in SsdtSerialPortLibArm.
- [5007] There should be no initialization of a variable as part of
its declaration Variable Name.
Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
Reviewed-by: Alexei Fedorov <Alexei.Fedorov@arm.com>
CM_ARM_SERIAL_PORT_INFO * SerialPortInfo;\r
UINT32 SerialPortCount;\r
UINTN Index;\r
- CHAR8 NewName[] = "COMx";\r
+ CHAR8 NewName[5];\r
UINT64 Uid;\r
EFI_ACPI_DESCRIPTION_HEADER ** TableList;\r
\r
// can be done in case of failure.\r
*Table = TableList;\r
\r
+ NewName[0] = 'C';\r
+ NewName[1] = 'O';\r
+ NewName[2] = 'M';\r
+ NewName[4] = '\0';\r
for (Index = 0; Index < SerialPortCount; Index++) {\r
Uid = SERIAL_PORT_START_UID + Index;\r
NewName[3] = AsciiFromHex ((UINT8)(Uid));\r