Remove extra blank lines
Signed-off-by: Paul Elliott <paul.elliott@arm.com>
diff --git a/library/psa_crypto.c b/library/psa_crypto.c
index 0bdbc5b..79b2618 100644
--- a/library/psa_crypto.c
+++ b/library/psa_crypto.c
@@ -3438,7 +3438,6 @@
status = psa_get_and_lock_key_slot_with_policy( key, &slot, key_usage,
alg );
-
if( status != PSA_SUCCESS )
goto exit;
@@ -3458,15 +3457,12 @@
slot->key.data,
slot->key.bytes,
alg );
-
-
if( status != PSA_SUCCESS )
goto exit;
operation->key_type = psa_get_key_type( &attributes );
exit:
-
unlock_status = psa_unlock_key_slot( slot );
if( status == PSA_SUCCESS )
@@ -3522,7 +3518,6 @@
required_nonce_size = PSA_AEAD_NONCE_LENGTH( operation->key_type,
operation->alg );
-
if( nonce_size < required_nonce_size )
{
status = PSA_ERROR_BUFFER_TOO_SMALL;
@@ -3530,14 +3525,12 @@
}
status = psa_generate_random( nonce, required_nonce_size );
-
if( status != PSA_SUCCESS )
goto exit;
status = psa_aead_set_nonce( operation, nonce, required_nonce_size );
exit:
-
if( status == PSA_SUCCESS )
*nonce_length = required_nonce_size;
else
@@ -3576,7 +3569,6 @@
nonce_length );
exit:
-
if( status == PSA_SUCCESS )
operation->nonce_set = 1;
else
@@ -3609,7 +3601,6 @@
plaintext_length );
exit:
-
if( status == PSA_SUCCESS )
{
operation->ad_remaining = ad_length;
@@ -3655,7 +3646,6 @@
input_length );
exit:
-
if( status == PSA_SUCCESS )
operation->ad_started = 1;
else
@@ -3714,7 +3704,6 @@
output_length );
exit:
-
if( status == PSA_SUCCESS )
operation->body_started = 1;
else
@@ -3750,7 +3739,6 @@
*tag_length = tag_size;
status = psa_aead_final_checks( operation );
-
if( status != PSA_SUCCESS )
goto exit;
@@ -3766,7 +3754,6 @@
tag, tag_size, tag_length );
exit:
-
/* In case the operation fails and the user fails to check for failure or
* the zero tag size, make sure the tag is set to something impossible.
* Even if the operation succeeds, make sure we set the rest of the
@@ -3796,7 +3783,6 @@
*plaintext_length = 0;
status = psa_aead_final_checks( operation );
-
if( status != PSA_SUCCESS )
goto exit;
@@ -3812,7 +3798,6 @@
tag, tag_length );
exit:
-
psa_aead_abort( operation );
return( status );