From 7b4154df0fc1aefdd67bde4d4798f1d81becce58 Mon Sep 17 00:00:00 2001 From: Ronald Cron Date: Fri, 19 Mar 2021 14:49:41 +0100 Subject: [PATCH] psa: wrapper: Fix potential unreachable statement warning Signed-off-by: Ronald Cron --- library/psa_crypto_driver_wrappers.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/psa_crypto_driver_wrappers.c b/library/psa_crypto_driver_wrappers.c index 765920fc8b..32c957eff1 100644 --- a/library/psa_crypto_driver_wrappers.c +++ b/library/psa_crypto_driver_wrappers.c @@ -751,7 +751,8 @@ psa_status_t psa_driver_wrapper_cipher_encrypt_setup( if( status == PSA_SUCCESS ) operation->id = PSA_CRYPTO_MBED_TLS_DRIVER_ID; - return( status ); + if( status != PSA_ERROR_NOT_SUPPORTED ) + return( status ); #endif /* MBEDTLS_PSA_BUILTIN_CIPHER */ return( PSA_ERROR_NOT_SUPPORTED );