summaryrefslogtreecommitdiffstats
path: root/ArmPkg
diff options
context:
space:
mode:
authorPierre Gondois <pierre.gondois@arm.com>2022-11-24 17:17:53 +0100
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2022-11-26 14:42:41 +0000
commit6ae2b6648eb4b42b5a133f3cde567f9765467bf6 (patch)
tree0d5bc192592ec425735fb88437e8d8a2dd46eb7f /ArmPkg
parentfff6d81270b57ee786ea18ad74f43149b9f03494 (diff)
downloadedk2-6ae2b6648eb4b42b5a133f3cde567f9765467bf6.tar.gz
edk2-6ae2b6648eb4b42b5a133f3cde567f9765467bf6.tar.bz2
edk2-6ae2b6648eb4b42b5a133f3cde567f9765467bf6.zip
ArmPkg/ArmTrngLib: Remove ASSERTs in ArmTrngLibConstructor()
Remove ASSERTs in ArmTrngLibConstructor() that prevent from booting on DEBUG builds. Signed-off-by: Pierre Gondois <Pierre.Gondois@arm.com> Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'ArmPkg')
-rw-r--r--ArmPkg/Library/ArmTrngLib/ArmTrngLib.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/ArmPkg/Library/ArmTrngLib/ArmTrngLib.c b/ArmPkg/Library/ArmTrngLib/ArmTrngLib.c
index 3278722320..c2555f3ea6 100644
--- a/ArmPkg/Library/ArmTrngLib/ArmTrngLib.c
+++ b/ArmPkg/Library/ArmTrngLib/ArmTrngLib.c
@@ -331,14 +331,12 @@ ArmTrngLibConstructor (
ArmMonitorCall (&Parameters);
Status = TrngStatusToReturnStatus ((INT32)Parameters.Arg0);
if (RETURN_ERROR (Status)) {
- ASSERT_RETURN_ERROR (Status);
goto ErrorHandler;
}
// Cf [1] s2.1.3 'Caller responsibilities',
// SMCCC version must be greater or equal than 1.1
if ((INT32)Parameters.Arg0 < 0x10001) {
- ASSERT_RETURN_ERROR (RETURN_UNSUPPORTED);
goto ErrorHandler;
}
@@ -350,14 +348,12 @@ ArmTrngLibConstructor (
// Check that the required features are present.
Status = GetArmTrngFeatures (ARM_SMC_ID_TRNG_RND, NULL);
if (RETURN_ERROR (Status)) {
- ASSERT_RETURN_ERROR (Status);
goto ErrorHandler;
}
// Check if TRNG UUID is supported and if so trace the GUID.
Status = GetArmTrngFeatures (ARM_SMC_ID_TRNG_GET_UUID, NULL);
if (RETURN_ERROR (Status)) {
- ASSERT_RETURN_ERROR (Status);
goto ErrorHandler;
}
@@ -365,7 +361,6 @@ ArmTrngLibConstructor (
Status = GetArmTrngUuid (&Guid);
if (RETURN_ERROR (Status)) {
- ASSERT_RETURN_ERROR (Status);
goto ErrorHandler;
}