]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Spcr/SpcrParser.c
ShellPkg/UefiShellAcpiViewCommandLib: Fix ECC issues
[mirror_edk2.git] / ShellPkg / Library / UefiShellAcpiViewCommandLib / Parsers / Spcr / SpcrParser.c
index 64340886fe582440088cb58ed7ea4bc7ad147d12..815ba9a9db03f88f264edee2c3685defebb80ac1 100644 (file)
@@ -98,7 +98,10 @@ ValidateInterruptType (
   )\r
 {\r
 #if defined (MDE_CPU_ARM) || defined (MDE_CPU_AARCH64)\r
-  UINT8 InterruptType = *Ptr;\r
+  UINT8 InterruptType;\r
+\r
+  InterruptType = *Ptr;\r
+\r
   if (InterruptType !=\r
         EFI_ACPI_SERIAL_PORT_CONSOLE_REDIRECTION_TABLE_INTERRUPT_TYPE_GIC) {\r
     IncrementErrorCount ();\r
@@ -126,7 +129,10 @@ ValidateIrq (
   )\r
 {\r
 #if defined (MDE_CPU_ARM) || defined (MDE_CPU_AARCH64)\r
-  UINT8 Irq = *Ptr;\r
+  UINT8 Irq;\r
+\r
+  Irq = *Ptr;\r
+\r
   if (Irq != 0) {\r
     IncrementErrorCount ();\r
     Print (\r