]> git.proxmox.com Git - mirror_edk2.git/blobdiff - DuetPkg/SmbiosGenDxe/SmbiosGen.c
DuetPkg: Fix GCC error to avoid the duplicated global variable in SmbiosGenDxe
[mirror_edk2.git] / DuetPkg / SmbiosGenDxe / SmbiosGen.c
index 0b5757c78a6403dab29f8a3040f87b941be3e859..393bb4d374e5f7d05f130e5a7b042481c94da227 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
-Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials                          \r
 are licensed and made available under the terms and conditions of the BSD License         \r
 which accompanies this distribution.  The full text of the license may be found at        \r
@@ -18,7 +18,6 @@ Abstract:
 **/\r
 \r
 #include "SmbiosGen.h"\r
-EFI_HII_DATABASE_PROTOCOL   *gHiiDatabase;\r
 extern UINT8                SmbiosGenDxeStrings[];\r
 EFI_SMBIOS_PROTOCOL         *gSmbios;\r
 EFI_HII_HANDLE              gStringHandle;\r
@@ -211,16 +210,6 @@ SmbiosGenEntrypoint (
   if (EFI_ERROR (Status)) {\r
     return Status;\r
   }\r
-\r
-  Status = gBS->LocateProtocol (\r
-                  &gEfiHiiDatabaseProtocolGuid,\r
-                  NULL,\r
-                  (VOID**)&gHiiDatabase\r
-                  );\r
-\r
-  if (EFI_ERROR (Status)) {\r
-    return Status;\r
-  }\r
   \r
   gStringHandle = HiiAddPackages (\r
                     &gEfiCallerIdGuid,\r
@@ -330,7 +319,7 @@ LogSmbiosData (
   EFI_STATUS         Status;\r
   EFI_SMBIOS_HANDLE  SmbiosHandle;\r
   \r
-  SmbiosHandle = 0;\r
+  SmbiosHandle = SMBIOS_HANDLE_PI_RESERVED;\r
   Status = Smbios->Add (\r
                      Smbios,\r
                      NULL,\r