]> git.proxmox.com Git - mirror_edk2.git/commitdiff
IntelFrameworkModulePkg: Remove gZeroGuid definition in DataHubDxe
authorHao Wu <hao.a.wu@intel.com>
Tue, 7 Jul 2015 02:54:53 +0000 (02:54 +0000)
committerhwu1225 <hwu1225@Edk2>
Tue, 7 Jul 2015 02:54:53 +0000 (02:54 +0000)
MdeModulePkg has defined gZeroGuid in 'Guid/ZeroGuid.h', therefore, the
gZeroGuid defined in DataHubDxe is redundant.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17838 6f19259b-4bc3-4df7-8a09-765794883524

IntelFrameworkModulePkg/Universal/DataHubDxe/DataHub.c
IntelFrameworkModulePkg/Universal/DataHubDxe/DataHub.h
IntelFrameworkModulePkg/Universal/DataHubDxe/DataHubDxe.inf

index 01bc215ccd1d4e2ae8a1e7e7bc91d09d62789b34..91f7c7ecf9da4f651da7075bf6e72f0a68fae740 100644 (file)
@@ -2,7 +2,7 @@
   This code produces the Data Hub protocol. It preloads the data hub\r
   with status information copied in from PEI HOBs.\r
   \r
-Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2015, 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
@@ -15,8 +15,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 #include "DataHub.h"\r
 \r
-CONST EFI_GUID gZeroGuid  = { 0, 0, 0, { 0, 0, 0, 0, 0, 0, 0, 0 } };\r
-\r
 //\r
 //  Since this driver will only ever produce one instance of the Logging Hub\r
 //  protocol you are not required to dynamically allocate the PrivateData.\r
index 2a4e760a41846ed4c625dd78862cc93ed8145a55..de2e3f34ff10549bf0a6c6e4dcd090673089ae62 100644 (file)
@@ -2,7 +2,7 @@
   This code supports a the private implementation \r
   of the Data Hub protocol\r
   \r
-Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2015, 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
@@ -21,6 +21,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 #include <Protocol/DataHub.h>\r
 \r
+#include <Guid/ZeroGuid.h>\r
+\r
 #include <Library/DebugLib.h>\r
 #include <Library/UefiDriverEntryPoint.h>\r
 #include <Library/UefiLib.h>\r
index 7845a892d9e8a75f14af754b1b986a80372b2013..834c3b3148ec2d525ced13079f36b60457bfcd73 100644 (file)
@@ -21,7 +21,7 @@
 #  drivers to be aware of all reporting formats.\r
 #  For more information, please ref http://www.intel.com/technology/framework/\r
 #  \r
-#  Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
+#  Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>\r
 #\r
 #  This program and the accompanying materials\r
 #  are licensed and made available under the terms and conditions of the BSD License\r
@@ -56,6 +56,7 @@
 [Packages]\r
   IntelFrameworkPkg/IntelFrameworkPkg.dec\r
   MdePkg/MdePkg.dec\r
+  MdeModulePkg/MdeModulePkg.dec\r
 \r
 \r
 [LibraryClasses]\r
   DebugLib\r
 \r
 \r
+[Guids]\r
+  gZeroGuid                                     ## SOMETIMES_CONSUMES   ## GUID\r
+\r
+\r
 [Protocols]\r
   gEfiDataHubProtocolGuid                       ## PRODUCES\r
 \r