From 39cde03cc5efd67c11dc75cd5ba5e8ccf55c5594 Mon Sep 17 00:00:00 2001 From: Hao Wu Date: Tue, 30 Aug 2016 09:57:59 +0800 Subject: 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 Cc: Star Zeng Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu Reviewed-by: Feng Tian --- MdeModulePkg/Application/MemoryProfileInfo/MemoryProfileInfo.c | 3 +-- MdeModulePkg/Application/MemoryProfileInfo/MemoryProfileInfo.inf | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'MdeModulePkg/Application') 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 #include -#include #include #include @@ -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] -- cgit v1.2.3