From 6cbc9986fb51a4e22a6061a7bc87a4a2e98ef6df Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Thu, 7 Apr 2022 20:43:05 +0200 Subject: [PATCH] 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 --- tests/suites/test_suite_ssl.function | 3 --- 1 file changed, 3 deletions(-) diff --git a/tests/suites/test_suite_ssl.function b/tests/suites/test_suite_ssl.function index 5246187c2c..efa297fd88 100644 --- a/tests/suites/test_suite_ssl.function +++ b/tests/suites/test_suite_ssl.function @@ -5651,9 +5651,6 @@ exit: mbedtls_endpoint_free( &client, NULL ); mbedtls_endpoint_free( &server, NULL ); - mbedtls_psa_get_stats( &stats ); - TEST_ASSERT( stats.empty_slots == MBEDTLS_PSA_KEY_SLOT_COUNT ); - USE_PSA_DONE( ); } /* END_CASE */