From d52c8dc783be6ea2941bd05b3fb3a7a759f16f5a Mon Sep 17 00:00:00 2001 From: gabor-mezei-arm Date: Fri, 25 Jun 2021 15:43:32 +0200 Subject: [PATCH] Fix possible unreachable code Signed-off-by: gabor-mezei-arm --- library/psa_crypto_driver_wrappers.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/library/psa_crypto_driver_wrappers.c b/library/psa_crypto_driver_wrappers.c index 6ae7af9adc..f7240ceacc 100644 --- a/library/psa_crypto_driver_wrappers.c +++ b/library/psa_crypto_driver_wrappers.c @@ -782,9 +782,9 @@ psa_status_t psa_driver_wrapper_cipher_encrypt( output, output_size, output_length ) ); -#endif /* MBEDTLS_PSA_BUILTIN_CIPHER */ - +#else return( PSA_ERROR_NOT_SUPPORTED ); +#endif /* MBEDTLS_PSA_BUILTIN_CIPHER */ /* Add cases for opaque driver here */ #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) @@ -864,9 +864,9 @@ psa_status_t psa_driver_wrapper_cipher_decrypt( output, output_size, output_length ) ); -#endif /* MBEDTLS_PSA_BUILTIN_CIPHER */ - +#else return( PSA_ERROR_NOT_SUPPORTED ); +#endif /* MBEDTLS_PSA_BUILTIN_CIPHER */ /* Add cases for opaque driver here */ #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT)