From a79f8062257ade6b48a5a450682376b26e2016da Mon Sep 17 00:00:00 2001 From: Thomas Daubney Date: Fri, 28 Jul 2023 14:33:20 +0100 Subject: [PATCH] Remove superfluous calls to psa_hash_abort Calls were not required since psa_hash_setup was yet to be called. Signed-off-by: Thomas Daubney --- programs/psa/psa_hash.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/programs/psa/psa_hash.c b/programs/psa/psa_hash.c index 5c565db2ee..59375c27e3 100644 --- a/programs/psa/psa_hash.c +++ b/programs/psa/psa_hash.c @@ -69,8 +69,6 @@ int main(void) status = psa_crypto_init(); if (status != PSA_SUCCESS) { mbedtls_printf("psa_crypto_init failed\n"); - psa_hash_abort(&psa_hash_operation); - psa_hash_abort(&cloned_psa_hash_operation); return EXIT_FAILURE; }