X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=CryptoPkg%2FLibrary%2FBaseCryptLibOnProtocolPpi%2FDxeCryptLib.c;h=dc7527bb01e91eb7563a3301f78ae2274ce12223;hp=b503a5708bdbc72fec2c1328654d2deab2174625;hb=7c342378317039e632d9a1a5d4cf7c21aec8cb7a;hpb=2b16a4fb91b9b31c0d152588f5ac51080c6c0763 diff --git a/CryptoPkg/Library/BaseCryptLibOnProtocolPpi/DxeCryptLib.c b/CryptoPkg/Library/BaseCryptLibOnProtocolPpi/DxeCryptLib.c index b503a5708b..dc7527bb01 100644 --- a/CryptoPkg/Library/BaseCryptLibOnProtocolPpi/DxeCryptLib.c +++ b/CryptoPkg/Library/BaseCryptLibOnProtocolPpi/DxeCryptLib.c @@ -57,8 +57,8 @@ DxeCryptLibConstructor ( (VOID **)&mCryptoProtocol ); - if (EFI_ERROR (Status) || mCryptoProtocol == NULL) { - DEBUG((DEBUG_ERROR, "[DxeCryptLib] Failed to locate Crypto Protocol. Status = %r\n", Status)); + if (EFI_ERROR (Status) || (mCryptoProtocol == NULL)) { + DEBUG ((DEBUG_ERROR, "[DxeCryptLib] Failed to locate Crypto Protocol. Status = %r\n", Status)); ASSERT_EFI_ERROR (Status); ASSERT (mCryptoProtocol != NULL); mCryptoProtocol = NULL; @@ -67,7 +67,7 @@ DxeCryptLibConstructor ( Version = mCryptoProtocol->GetVersion (); if (Version < EDKII_CRYPTO_VERSION) { - DEBUG((DEBUG_ERROR, "[DxeCryptLib] Crypto Protocol unsupported version %d\n", Version)); + DEBUG ((DEBUG_ERROR, "[DxeCryptLib] Crypto Protocol unsupported version %d\n", Version)); ASSERT (Version >= EDKII_CRYPTO_VERSION); mCryptoProtocol = NULL; return EFI_NOT_FOUND;