From d81ab56c84ef2d4bda931158fc3d618718f32855 Mon Sep 17 00:00:00 2001 From: Ronald Cron Date: Tue, 16 Feb 2021 09:01:16 +0100 Subject: [PATCH] psa: Avoid empty block Avoid empty block to ease maintenance. Signed-off-by: Ronald Cron --- library/psa_crypto.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/psa_crypto.c b/library/psa_crypto.c index 782e261404..f304950e0a 100644 --- a/library/psa_crypto.c +++ b/library/psa_crypto.c @@ -5999,6 +5999,8 @@ static psa_status_t psa_validate_key_type_and_size_for_key_generation( #if defined(PSA_WANT_KEY_TYPE_ECC_KEY_PAIR) if( PSA_KEY_TYPE_IS_ECC( type ) && PSA_KEY_TYPE_IS_KEY_PAIR( type ) ) { + /* To avoid empty block, return successfully here. */ + return( PSA_SUCCESS ); } else #endif /* defined(PSA_WANT_KEY_TYPE_ECC_KEY_PAIR) */