From 7175d71328fb7962b622c78ec366dab05890ca10 Mon Sep 17 00:00:00 2001 From: David Horstmann Date: Fri, 9 Feb 2024 18:20:05 +0000 Subject: [PATCH] Remove unnecessary setting of status variable The status is guaranteed to be PSA_SUCCESS at these points, so setting them is redundant. Signed-off-by: David Horstmann --- library/psa_crypto.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/library/psa_crypto.c b/library/psa_crypto.c index dfb97ee09d..a671c7f62a 100644 --- a/library/psa_crypto.c +++ b/library/psa_crypto.c @@ -8413,7 +8413,6 @@ psa_status_t psa_pake_output( goto exit; } - status = PSA_SUCCESS; exit: LOCAL_OUTPUT_FREE(output_external, output); if (status != PSA_SUCCESS) { @@ -8491,7 +8490,6 @@ psa_status_t psa_pake_input( goto exit; } - status = PSA_SUCCESS; exit: LOCAL_INPUT_FREE(input_external, input); if (status != PSA_SUCCESS) {