From 5282393091588d6d12c955f83278577d7254d969 Mon Sep 17 00:00:00 2001 From: Neil Armstrong Date: Wed, 8 Jun 2022 13:36:12 +0200 Subject: [PATCH] Remove useless braces in psa_crypto_pake.c Signed-off-by: Neil Armstrong --- library/psa_crypto_pake.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/library/psa_crypto_pake.c b/library/psa_crypto_pake.c index 594def2ba6..7f730e58db 100644 --- a/library/psa_crypto_pake.c +++ b/library/psa_crypto_pake.c @@ -119,9 +119,7 @@ psa_status_t psa_pake_setup( psa_pake_operation_t *operation, { /* A context must be freshly initialized before it can be set up. */ if( operation->alg != 0 || operation->state != PSA_PAKE_STATE_INVALID ) - { return( PSA_ERROR_BAD_STATE ); - } if( cipher_suite == NULL || PSA_ALG_IS_PAKE(cipher_suite->algorithm ) == 0 || @@ -448,10 +446,8 @@ psa_status_t psa_pake_output( psa_pake_operation_t *operation, length = operation->buffer[0] + 1; } else - { /* Length is stored at the first byte of the next chunk */ length = operation->buffer[operation->buffer_offset] + 1; - } if( length > operation->buffer_length ) return( PSA_ERROR_DATA_CORRUPT ); @@ -484,9 +480,7 @@ psa_status_t psa_pake_output( psa_pake_operation_t *operation, operation->sequence = 0; } else - { operation->sequence++; - } return( PSA_SUCCESS ); #else @@ -639,9 +633,7 @@ psa_status_t psa_pake_input( psa_pake_operation_t *operation, operation->sequence = 0; } else - { operation->sequence++; - } return( PSA_SUCCESS ); #else