From 080a8fc2d39c07cb33c36c1875db05bf6f00ffce Mon Sep 17 00:00:00 2001 From: Goldfish64 Date: Tue, 19 Jan 2021 20:02:53 -0600 Subject: [PATCH] OcAudioLib: Fix previous commit --- Library/OcAudioLib/OcAudioDump.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/OcAudioLib/OcAudioDump.c b/Library/OcAudioLib/OcAudioDump.c index 103fb4b8..d512a285 100644 --- a/Library/OcAudioLib/OcAudioDump.c +++ b/Library/OcAudioLib/OcAudioDump.c @@ -586,7 +586,7 @@ OcAudioDump ( ); DEBUG ((DEBUG_INFO, "OCAU: %u HDA controllers installed - %r\n", (UINT32) HandleCount, Status)); - if (Status == EFI_SUCCESS) { + if (!EFI_ERROR (Status)) { for (Index = 0; Index < HandleCount; Index++) { Status = gBS->HandleProtocol (HandleBuffer[Index], &gEfiHdaControllerInfoProtocolGuid, (VOID **) &HdaControllerInfo); DEBUG ((DEBUG_INFO, "OCAU: HDA controller %u info open result - %r\n", Index, Status)); @@ -650,7 +650,7 @@ OcAudioDump ( ); DEBUG ((DEBUG_INFO, "OCAU: %u HDA codecs installed - %r\n", (UINT32) HandleCount, Status)); - if (Status == EFI_SUCCESS) { + if (!EFI_ERROR (Status)) { for (Index = 0; Index < HandleCount; Index++) { Status = gBS->HandleProtocol (HandleBuffer[Index], &gEfiHdaCodecInfoProtocolGuid, (VOID **) &HdaCodecInfo); DEBUG ((DEBUG_INFO, "OCAU: HDA codec %u info open result - %r\n", Index, Status));