]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Library/UefiShellAcpiViewCommandLib/UefiShellAcpiViewCommandLib.c
ShellPkg/UefiShellAcpiViewCommandLib: Fix GCC build failure
[mirror_edk2.git] / ShellPkg / Library / UefiShellAcpiViewCommandLib / UefiShellAcpiViewCommandLib.c
index 7de28691be26bc14e26c4c284e406700669c77cf..245700a2534552d9786ecb109dc1b3c9fa793495 100644 (file)
@@ -1,4 +1,4 @@
-/**\r
+/** @file\r
   Main file for 'acpiview' Shell command function.\r
 \r
   Copyright (c) 2016 - 2018, ARM Limited. All rights reserved.<BR>\r
@@ -49,7 +49,8 @@ ACPI_TABLE_PARSER ParserList[] = {
   {EFI_ACPI_6_2_EXTENDED_SYSTEM_DESCRIPTION_TABLE_SIGNATURE, ParseAcpiXsdt}\r
 };\r
 \r
-/** This function registers all the available table parsers.\r
+/**\r
+  This function registers all the available table parsers.\r
 \r
   @retval EFI_SUCCESS           The parser is registered.\r
   @retval EFI_ALREADY_STARTED   The parser for the ACPI Table\r
@@ -57,13 +58,17 @@ ACPI_TABLE_PARSER ParserList[] = {
   @retval EFI_INVALID_PARAMETER A parameter is invalid.\r
   @retval EFI_OUT_OF_RESOURCES  No space to register the\r
                                 parser.\r
-*/\r
+**/\r
 EFI_STATUS\r
 RegisterAllParsers (\r
   )\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
@@ -80,7 +85,7 @@ RegisterAllParsers (
   Return the file name of the help text file if not using HII.\r
 \r
   @return The string pointer to the file name.\r
-*/\r
+**/\r
 CONST CHAR16*\r
 EFIAPI\r
 ShellCommandGetManFileNameAcpiView (\r
@@ -101,7 +106,7 @@ ShellCommandGetManFileNameAcpiView (
   @retval EFI_SUCCESS           The Shell command handlers were installed\r
                                 successfully.\r
   @retval EFI_DEVICE_ERROR      Hii package failed to install.\r
-*/\r
+**/\r
 EFI_STATUS\r
 EFIAPI\r
 UefiShellAcpiViewCommandLibConstructor (\r
@@ -152,7 +157,7 @@ UefiShellAcpiViewCommandLibConstructor (
 \r
   @param ImageHandle            The image handle of the process.\r
   @param SystemTable            The EFI System Table pointer.\r
-*/\r
+**/\r
 EFI_STATUS\r
 EFIAPI\r
 UefiShellAcpiViewCommandLibDestructor (\r