mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-24 05:15:40 +00:00
Remove redundant check for slot->allocated
This check became redundant when support for direct access to key slots was removed.
This commit is contained in:
parent
539cda57df
commit
408319be3a
|
@ -899,8 +899,6 @@ psa_status_t psa_internal_release_key_slot( psa_key_handle_t handle )
|
|||
status = psa_get_key_slot( handle, &slot );
|
||||
if( status != PSA_SUCCESS )
|
||||
return( status );
|
||||
if( ! slot->allocated )
|
||||
return( PSA_ERROR_INVALID_HANDLE );
|
||||
|
||||
return( psa_wipe_key_slot( slot ) );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue