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 ); drv->key_management->p_export );
if( method == NULL ) if( method == NULL )
return( PSA_ERROR_NOT_SUPPORTED ); return( PSA_ERROR_NOT_SUPPORTED );
return( ( *method )( drv_context, return( method( drv_context,
slot->data.se.slot_number, slot->data.se.slot_number,
data, data_size, data_length ) ); data, data_size, data_length ) );
} }
#endif /* MBEDTLS_PSA_CRYPTO_SE_C */ #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 ) if( p_allocate == NULL )
return( PSA_ERROR_NOT_SUPPORTED ); return( PSA_ERROR_NOT_SUPPORTED );
status = ( *p_allocate )( &driver->context, status = p_allocate( &driver->context,
driver->internal.persistent_data, driver->internal.persistent_data,
attributes, attributes,
slot_number ); slot_number );
return( status ); return( status );
} }