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>
This commit is contained in:
@@ -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
|
||||
//
|
||||
|
Reference in New Issue
Block a user