From c14705b746ee870e8b9aa08ae43ca89edae3975b Mon Sep 17 00:00:00 2001 From: Callum Farmer Date: Sun, 28 Jul 2024 16:01:17 +0100 Subject: [PATCH] Fix up for new CompareGuid Signed-off-by: Callum Farmer --- lib/dpath.c | 2 +- lib/hand.c | 2 +- lib/misc.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/dpath.c b/lib/dpath.c index e379a32..d807527 100644 --- a/lib/dpath.c +++ b/lib/dpath.c @@ -543,7 +543,7 @@ _DevPathVendor ( } CatPrint(Str, u"Ven%s(%g", Type, &Vendor->Guid); - if (CompareGuid (&Vendor->Guid, &UnknownDevice) == 0) { + if (CompareGuid (&Vendor->Guid, &UnknownDevice)) { // // GUID used by EFI to enumerate an EDD 1.1 device // diff --git a/lib/hand.c b/lib/hand.c index 73dbc89..ff92c86 100644 --- a/lib/hand.c +++ b/lib/hand.c @@ -225,7 +225,7 @@ LibLocateHandleByDiskSignature ( } break; case SIGNATURE_TYPE_GUID: - if (CompareGuid((EFI_GUID *)Signature,(EFI_GUID *)(&(HardDriveDevicePath->Signature[0]))) == 0) { + if (CompareGuid((EFI_GUID *)Signature,(EFI_GUID *)(&(HardDriveDevicePath->Signature[0])))) { Match = TRUE; } break; diff --git a/lib/misc.c b/lib/misc.c index c0c97db..dc5d020 100644 --- a/lib/misc.c +++ b/lib/misc.c @@ -526,7 +526,7 @@ LibGetSystemConfigurationTable( UINTN Index; for(Index=0;IndexNumberOfTableEntries;Index++) { - if (CompareGuid(TableGuid,&(ST->ConfigurationTable[Index].VendorGuid))==0) { + if (CompareGuid(TableGuid,&(ST->ConfigurationTable[Index].VendorGuid))) { *Table = ST->ConfigurationTable[Index].VendorTable; return EFI_SUCCESS; }