mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-17 11:43:37 +00:00
Remove redundant empty slot count check
USE_PSA_DONE() already checks that there are no used key slots. The call to TEST_ASSERT() wouldn't have worked properly on failure anyway, since it would jump back to the exit label. Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
This commit is contained in:
parent
28f883eba5
commit
6cbc9986fb
@ -5651,9 +5651,6 @@ exit:
|
|||||||
mbedtls_endpoint_free( &client, NULL );
|
mbedtls_endpoint_free( &client, NULL );
|
||||||
mbedtls_endpoint_free( &server, NULL );
|
mbedtls_endpoint_free( &server, NULL );
|
||||||
|
|
||||||
mbedtls_psa_get_stats( &stats );
|
|
||||||
TEST_ASSERT( stats.empty_slots == MBEDTLS_PSA_KEY_SLOT_COUNT );
|
|
||||||
|
|
||||||
USE_PSA_DONE( );
|
USE_PSA_DONE( );
|
||||||
}
|
}
|
||||||
/* END_CASE */
|
/* END_CASE */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user