Remove useless braces in psa_crypto_pake.c
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
diff --git a/library/psa_crypto_pake.c b/library/psa_crypto_pake.c
index 594def2..7f730e5 100644
--- a/library/psa_crypto_pake.c
+++ b/library/psa_crypto_pake.c
@@ -119,9 +119,7 @@
{
/* 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 @@
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 @@
operation->sequence = 0;
}
else
- {
operation->sequence++;
- }
return( PSA_SUCCESS );
#else
@@ -639,9 +633,7 @@
operation->sequence = 0;
}
else
- {
operation->sequence++;
- }
return( PSA_SUCCESS );
#else