Remove unneccesary nesting
@@ -439,9 +439,7 @@ static int aead_multipart_internal_func( int key_type_arg, data_t *key_data,
{
part_length = 0;
}
- else
- {
- if( additional_data->len - part_offset < ad_part_len )
+ else if( additional_data->len - part_offset < ad_part_len )
{
part_length = additional_data->len - part_offset;
}
@@ -449,7 +447,6 @@ static int aead_multipart_internal_func( int key_type_arg, data_t *key_data,
{
part_length = ad_part_len;
}
- }
PSA_ASSERT( psa_aead_update_ad( &operation,
additional_data->x + part_offset,
@@ -481,9 +478,7 @@ static int aead_multipart_internal_func( int key_type_arg, data_t *key_data,
{
part_length = 0;
}
- else
- {
- if( ( data_true_size - part_offset ) < data_part_len )
+ else if( ( data_true_size - part_offset ) < data_part_len )
{
part_length = ( data_true_size - part_offset );
}
@@ -491,7 +486,6 @@ static int aead_multipart_internal_func( int key_type_arg, data_t *key_data,
{
part_length = data_part_len;
}
- }
PSA_ASSERT( psa_aead_update( &operation,
( input_data->x + part_offset ),
