]> git.proxmox.com Git - mirror_edk2.git/commitdiff
IntelFrameworkModulePkg: Use IsZeroGuid API for zero GUID checking
authorHao Wu <hao.a.wu@intel.com>
Tue, 30 Aug 2016 01:51:40 +0000 (09:51 +0800)
committerHao Wu <hao.a.wu@intel.com>
Wed, 31 Aug 2016 03:13:49 +0000 (11:13 +0800)
Instead of comparing a GUID with gZeroGuid via the CompareGuid API, the
commit uses the IsZeroGuid API to check if the given GUID is a zero GUID.

Cc: Jeff Fan <jeff.fan@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Jeff Fan <jeff.fan@intel.com>
IntelFrameworkModulePkg/Universal/DataHubDxe/DataHub.c
IntelFrameworkModulePkg/Universal/DataHubDxe/DataHub.h
IntelFrameworkModulePkg/Universal/DataHubDxe/DataHubDxe.inf

index 91f7c7ecf9da4f651da7075bf6e72f0a68fae740..916586f11235b9180b0f23f48804b80c86982dbd 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 - 2015, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2016, 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
@@ -139,7 +139,7 @@ DataHubLogData (
   for (Link = GetFirstNode(Head); Link != Head; Link = GetNextNode(Head, Link)) {\r
     FilterEntry = FILTER_ENTRY_FROM_LINK (Link);\r
     if (((FilterEntry->ClassFilter & DataRecordClass) != 0) &&\r
-        (CompareGuid (&FilterEntry->FilterDataRecordGuid, &gZeroGuid) || \r
+        (IsZeroGuid (&FilterEntry->FilterDataRecordGuid) ||\r
          CompareGuid (&FilterEntry->FilterDataRecordGuid, DataRecordGuid))) {\r
       gBS->SignalEvent (FilterEntry->Event);\r
     }\r
index de2e3f34ff10549bf0a6c6e4dcd090673089ae62..7770c438dab97c3855362712c7de19c651f1ffbb 100644 (file)
@@ -2,7 +2,7 @@
   This code supports a the private implementation \r
   of the Data Hub protocol\r
   \r
-Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2016, 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,8 +21,6 @@ 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 834c3b3148ec2d525ced13079f36b60457bfcd73..0b93f719bbe33720ac53bf96304b341d40626c24 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 - 2015, Intel Corporation. All rights reserved.<BR>\r
+#  Copyright (c) 2006 - 2016, 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
   DebugLib\r
 \r
 \r
-[Guids]\r
-  gZeroGuid                                     ## SOMETIMES_CONSUMES   ## GUID\r
-\r
-\r
 [Protocols]\r
   gEfiDataHubProtocolGuid                       ## PRODUCES\r
 \r