Don't explicitly dereference function pointers

Be stylistically consistent.
This commit is contained in:
Gilles Peskine 2019-07-25 11:34:33 +02:00
parent 60450a4812
commit 2e0f388d2a
2 changed files with 7 additions and 7 deletions

View file

@ -1231,9 +1231,9 @@ static psa_status_t psa_internal_export_key( const psa_key_slot_t *slot,
drv->key_management->p_export );
if( method == NULL )
return( PSA_ERROR_NOT_SUPPORTED );
return( ( *method )( drv_context,
slot->data.se.slot_number,
data, data_size, data_length ) );
return( method( drv_context,
slot->data.se.slot_number,
data, data_size, data_length ) );
}
#endif /* MBEDTLS_PSA_CRYPTO_SE_C */

View file

@ -211,10 +211,10 @@ psa_status_t psa_find_se_slot_for_key(
if( p_allocate == NULL )
return( PSA_ERROR_NOT_SUPPORTED );
status = ( *p_allocate )( &driver->context,
driver->internal.persistent_data,
attributes,
slot_number );
status = p_allocate( &driver->context,
driver->internal.persistent_data,
attributes,
slot_number );
return( status );
}