Revision: 17845
          http://sourceforge.net/p/edk2/code/17845
Author:   hwu1225
Date:     2015-07-07 03:04:47 +0000 (Tue, 07 Jul 2015)
Log Message:
-----------
EdkCompatibilityPkg: Remove ZeroGuid definition in Datahub2SmbiosThunk

MdeModulePkg has defined gZeroGuid in 'Guid/ZeroGuid.h', therefore, the
ZeroGuid defined in
\Compatibility\PiSmbiosRecordOnDataHubSmbiosRecordThunk is redundant.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <[email protected]>
Reviewed-by: Liming Gao <[email protected]>
Reviewed-by: Jaben Carsey <[email protected]>

Modified Paths:
--------------
    
trunk/edk2/EdkCompatibilityPkg/Compatibility/PiSmbiosRecordOnDataHubSmbiosRecordThunk/PiSmbiosRecordOnDataHubSmbiosRecordThunk.inf
    
trunk/edk2/EdkCompatibilityPkg/Compatibility/PiSmbiosRecordOnDataHubSmbiosRecordThunk/Thunk.h
    
trunk/edk2/EdkCompatibilityPkg/Compatibility/PiSmbiosRecordOnDataHubSmbiosRecordThunk/Translate.c

Modified: 
trunk/edk2/EdkCompatibilityPkg/Compatibility/PiSmbiosRecordOnDataHubSmbiosRecordThunk/PiSmbiosRecordOnDataHubSmbiosRecordThunk.inf
===================================================================
--- 
trunk/edk2/EdkCompatibilityPkg/Compatibility/PiSmbiosRecordOnDataHubSmbiosRecordThunk/PiSmbiosRecordOnDataHubSmbiosRecordThunk.inf
  2015-07-07 03:04:18 UTC (rev 17844)
+++ 
trunk/edk2/EdkCompatibilityPkg/Compatibility/PiSmbiosRecordOnDataHubSmbiosRecordThunk/PiSmbiosRecordOnDataHubSmbiosRecordThunk.inf
  2015-07-07 03:04:47 UTC (rev 17845)
@@ -3,7 +3,7 @@
 #  is added via EFI_DATA_HUB_PROTOCOL->LogData(), this filter will be invoked 
to 
 #  translate the datahub's record to SMBIOS record.
 #
-#  Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>
+#  Copyright (c) 2009 - 2015, Intel Corporation. All rights reserved.<BR>
 #
 #  This program and the accompanying materials
 #  are licensed and made available under the terms and conditions of the BSD 
License
@@ -65,6 +65,7 @@
   gEfiMemorySubClassGuid      ## CONSUMES
   gEfiMiscSubClassGuid        ## CONSUMES
   gEfiCacheSubClassGuid       ## CONSUMES
+  gZeroGuid                   ## SOMETIMES_CONSUMES   ## GUID
   
 [FeaturePcd]
   gEfiMdeModulePkgTokenSpaceGuid.PcdFrameworkCompatibilitySupport

Modified: 
trunk/edk2/EdkCompatibilityPkg/Compatibility/PiSmbiosRecordOnDataHubSmbiosRecordThunk/Thunk.h
===================================================================
--- 
trunk/edk2/EdkCompatibilityPkg/Compatibility/PiSmbiosRecordOnDataHubSmbiosRecordThunk/Thunk.h
       2015-07-07 03:04:18 UTC (rev 17844)
+++ 
trunk/edk2/EdkCompatibilityPkg/Compatibility/PiSmbiosRecordOnDataHubSmbiosRecordThunk/Thunk.h
       2015-07-07 03:04:47 UTC (rev 17845)
@@ -1,7 +1,7 @@
 /** @file
   The common header file for the thunk driver.
   
-Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2009 - 2015, Intel Corporation. All rights reserved.<BR>
 This program and the accompanying materials
 are licensed and made available under the terms and conditions of the BSD 
License
 which accompanies this distribution.  The full text of the license may be 
found at
@@ -20,6 +20,7 @@
 
 #include <Guid/EventGroup.h>
 #include <Guid/SmBios.h>
+#include <Guid/ZeroGuid.h>
 #include <Protocol/DataHub.h>
 #include <Guid/DataHubRecords.h>
 #include <Protocol/HiiDatabase.h>

Modified: 
trunk/edk2/EdkCompatibilityPkg/Compatibility/PiSmbiosRecordOnDataHubSmbiosRecordThunk/Translate.c
===================================================================
--- 
trunk/edk2/EdkCompatibilityPkg/Compatibility/PiSmbiosRecordOnDataHubSmbiosRecordThunk/Translate.c
   2015-07-07 03:04:18 UTC (rev 17844)
+++ 
trunk/edk2/EdkCompatibilityPkg/Compatibility/PiSmbiosRecordOnDataHubSmbiosRecordThunk/Translate.c
   2015-07-07 03:04:47 UTC (rev 17845)
@@ -2,7 +2,7 @@
   Translate the DataHub records via EFI_DATA_HUB_PROTOCOL to Smbios recorders 
   via EFI_SMBIOS_PROTOCOL.
   
-Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2009 - 2015, Intel Corporation. All rights reserved.<BR>
 This program and the accompanying materials
 are licensed and made available under the terms and conditions of the BSD 
License
 which accompanies this distribution.  The full text of the license may be 
found at
@@ -15,7 +15,6 @@
 
 #include "Thunk.h"
 
-EFI_GUID  ZeroGuid = { 0, 0, 0, { 0, 0, 0, 0, 0, 0, 0, 0 } };
 EFI_SMBIOS_PROTOCOL  *mSmbiosProtocol = NULL;
 
 /**
@@ -83,7 +82,7 @@
     // Find a matching entry in the conversion table for this
     // (SubClass, RecordNumber) pair
     //
-    for (; !CompareGuid (&(mConversionTable[Index].SubClass), &ZeroGuid); 
Index++) {
+    for (; !CompareGuid (&(mConversionTable[Index].SubClass), &gZeroGuid); 
Index++) {
       if (CompareGuid (
             &(mConversionTable[Index].SubClass),
             &(RecordHeader->DataRecordGuid)
@@ -94,7 +93,7 @@
       }
     }
 
-    if (CompareGuid (&(mConversionTable[Index].SubClass), &ZeroGuid)) {
+    if (CompareGuid (&(mConversionTable[Index].SubClass), &gZeroGuid)) {
       //
       // We cannot find a matching entry in conversion table,
       // this means this data record cannot be used for SMBIOS.


------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to