Don't jump past a variable declaration
This is valid C99 (since the variable in question is not a VLA and is
not used) but not accepted by IAR 8.20.
diff --git a/library/psa_crypto.c b/library/psa_crypto.c
index 07c6261..9aa33df 100644
--- a/library/psa_crypto.c
+++ b/library/psa_crypto.c
@@ -5104,12 +5104,13 @@
const uint8_t *data,
size_t data_length )
{
- psa_status_t status = psa_key_derivation_check_input_type( step, key_type );
+ psa_status_t status;
+ psa_algorithm_t kdf_alg = psa_key_derivation_get_kdf_alg( operation );
+
+ status = psa_key_derivation_check_input_type( step, key_type );
if( status != PSA_SUCCESS )
goto exit;
- psa_algorithm_t kdf_alg = psa_key_derivation_get_kdf_alg( operation );
-
#if defined(MBEDTLS_MD_C)
if( PSA_ALG_IS_HKDF( kdf_alg ) )
{