]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Library/UefiShellAcpiViewCommandLib/UefiShellAcpiViewCommandLib.c
ShellPkg/acpi: Code cleanup to pass static code checker
[mirror_edk2.git] / ShellPkg / Library / UefiShellAcpiViewCommandLib / UefiShellAcpiViewCommandLib.c
index 8479bfbc9be06533cb4f94388fb3512757b13451..c6eb7087cfdde2db6a0298b508c751110a061677 100644 (file)
@@ -64,7 +64,11 @@ RegisterAllParsers (
   )\r
 {\r
   EFI_STATUS Status;\r
-  UINTN Count = sizeof (ParserList) / sizeof (ParserList[0]);\r
+  UINTN Count;\r
+\r
+  Status = EFI_SUCCESS;\r
+  Count = sizeof (ParserList) / sizeof (ParserList[0]);\r
+\r
   while (Count-- != 0) {\r
     Status = RegisterParser (\r
                ParserList[Count].Signature,\r
@@ -114,7 +118,7 @@ UefiShellAcpiViewCommandLibConstructor (
   gShellAcpiViewHiiHandle = NULL;\r
 \r
   // Check Shell Profile Debug1 bit of the profiles mask\r
-  if ((FixedPcdGet8 (PcdShellProfileMask) & BIT1) == 0) {\r
+  if ((PcdGet8 (PcdShellProfileMask) & BIT1) == 0) {\r
     return EFI_SUCCESS;\r
   }\r
 \r