diff options
author | Hao Wu <hao.a.wu@intel.com> | 2016-08-30 09:57:59 +0800 |
---|---|---|
committer | Hao Wu <hao.a.wu@intel.com> | 2016-08-31 11:14:01 +0800 |
commit | 39cde03cc5efd67c11dc75cd5ba5e8ccf55c5594 (patch) | |
tree | d4d827b1e200cddc07aa3103979ff8df88bbc3a7 /MdeModulePkg/Application | |
parent | dc2109946df2522974a058b0bca5530befdea1cd (diff) | |
download | edk2-platforms-39cde03cc5efd67c11dc75cd5ba5e8ccf55c5594.tar.xz |
MdeModulePkg: Use IsZeroGuid API for zero GUID checking
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: Feng Tian <feng.tian@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Feng Tian <feng.tian@Intel.com>
Diffstat (limited to 'MdeModulePkg/Application')
-rw-r--r-- | MdeModulePkg/Application/MemoryProfileInfo/MemoryProfileInfo.c | 3 | ||||
-rw-r--r-- | MdeModulePkg/Application/MemoryProfileInfo/MemoryProfileInfo.inf | 1 |
2 files changed, 1 insertions, 3 deletions
diff --git a/MdeModulePkg/Application/MemoryProfileInfo/MemoryProfileInfo.c b/MdeModulePkg/Application/MemoryProfileInfo/MemoryProfileInfo.c index e82ee9c93d..14e89347c6 100644 --- a/MdeModulePkg/Application/MemoryProfileInfo/MemoryProfileInfo.c +++ b/MdeModulePkg/Application/MemoryProfileInfo/MemoryProfileInfo.c @@ -27,7 +27,6 @@ #include <Protocol/SmmCommunication.h>
#include <Protocol/SmmAccess2.h>
-#include <Guid/ZeroGuid.h>
#include <Guid/MemoryProfile.h>
#include <Guid/PiSmmCommunicationRegionTable.h>
@@ -255,7 +254,7 @@ GetDriverNameString ( return mNameString;
}
- if (!CompareGuid (&DriverInfo->FileName, &gZeroGuid)) {
+ if (!IsZeroGuid (&DriverInfo->FileName)) {
//
// Try to get the image's FFS UI section by image GUID
//
diff --git a/MdeModulePkg/Application/MemoryProfileInfo/MemoryProfileInfo.inf b/MdeModulePkg/Application/MemoryProfileInfo/MemoryProfileInfo.inf index c512a3f651..4bb7a9df1d 100644 --- a/MdeModulePkg/Application/MemoryProfileInfo/MemoryProfileInfo.inf +++ b/MdeModulePkg/Application/MemoryProfileInfo/MemoryProfileInfo.inf @@ -52,7 +52,6 @@ ## SOMETIMES_CONSUMES ## GUID # Locate protocol
## SOMETIMES_CONSUMES ## GUID # SmiHandlerRegister
gEdkiiMemoryProfileGuid
- gZeroGuid ## SOMETIMES_CONSUMES ## GUID
gEdkiiPiSmmCommunicationRegionTableGuid ## SOMETIMES_CONSUMES ## SystemTable
[Protocols]
|