Skip to content

Commit 2e0f388

Browse files
Don't explicitly dereference function pointers
Be stylistically consistent.
1 parent 60450a4 commit 2e0f388

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

library/psa_crypto.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1231,9 +1231,9 @@ static psa_status_t psa_internal_export_key( const psa_key_slot_t *slot,
12311231
drv->key_management->p_export );
12321232
if( method == NULL )
12331233
return( PSA_ERROR_NOT_SUPPORTED );
1234-
return( ( *method )( drv_context,
1235-
slot->data.se.slot_number,
1236-
data, data_size, data_length ) );
1234+
return( method( drv_context,
1235+
slot->data.se.slot_number,
1236+
data, data_size, data_length ) );
12371237
}
12381238
#endif /* MBEDTLS_PSA_CRYPTO_SE_C */
12391239

library/psa_crypto_se.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,10 +211,10 @@ psa_status_t psa_find_se_slot_for_key(
211211
if( p_allocate == NULL )
212212
return( PSA_ERROR_NOT_SUPPORTED );
213213

214-
status = ( *p_allocate )( &driver->context,
215-
driver->internal.persistent_data,
216-
attributes,
217-
slot_number );
214+
status = p_allocate( &driver->context,
215+
driver->internal.persistent_data,
216+
attributes,
217+
slot_number );
218218
return( status );
219219
}
220220

0 commit comments

Comments
 (0)