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,7 +1231,7 @@ 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,
return( method( drv_context,
slot->data.se.slot_number,
data, data_size, data_length ) );
}

View file

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