return (VOID *)mCryptoProtocol;\r
}\r
\r
+/**\r
+ Locate the valid Crypto Protocol.\r
+\r
+ @param ImageHandle The firmware allocated handle for the EFI image.\r
+ @param SystemTable A pointer to the EFI System Table.\r
+\r
+ @retval EFI_SUCCESS The constructor executed correctly.\r
+ @retval EFI_NOT_FOUND Found no valid Crypto Protocol.\r
+**/\r
EFI_STATUS\r
EFIAPI\r
DxeCryptLibConstructor (\r
(VOID **)&mCryptoProtocol\r
);\r
\r
- if (EFI_ERROR (Status) || mCryptoProtocol == NULL) {\r
- DEBUG((DEBUG_ERROR, "[DxeCryptLib] Failed to locate Crypto Protocol. Status = %r\n", Status));\r
+ if (EFI_ERROR (Status) || (mCryptoProtocol == NULL)) {\r
+ DEBUG ((DEBUG_ERROR, "[DxeCryptLib] Failed to locate Crypto Protocol. Status = %r\n", Status));\r
ASSERT_EFI_ERROR (Status);\r
ASSERT (mCryptoProtocol != NULL);\r
mCryptoProtocol = NULL;\r
\r
Version = mCryptoProtocol->GetVersion ();\r
if (Version < EDKII_CRYPTO_VERSION) {\r
- DEBUG((DEBUG_ERROR, "[DxeCryptLib] Crypto Protocol unsupported version %d\n", Version));\r
+ DEBUG ((DEBUG_ERROR, "[DxeCryptLib] Crypto Protocol unsupported version %d\n", Version));\r
ASSERT (Version >= EDKII_CRYPTO_VERSION);\r
mCryptoProtocol = NULL;\r
return EFI_NOT_FOUND;\r