From db01e0271f12f135d3ad1aa1df36c36cf64294ce Mon Sep 17 00:00:00 2001 From: David Brown Date: Thu, 11 Feb 2021 10:56:37 -0700 Subject: [PATCH] Remove an unnecessary #else and commented line With the else branch commented out, both lines are unnecessary. We could check for the invalid configuration in the future, once tests were made to exclude this combination. Signed-off-by: David Brown --- include/mbedtls/config_psa.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/mbedtls/config_psa.h b/include/mbedtls/config_psa.h index edf1755be..703a03321 100644 --- a/include/mbedtls/config_psa.h +++ b/include/mbedtls/config_psa.h @@ -352,8 +352,6 @@ extern "C" { #if defined(PSA_WANT_KEY_TYPE_CHACHA20) #define MBEDTLS_CHACHAPOLY_C #define MBEDTLS_PSA_BUILTIN_ALG_CHACHA20_POLY1305 1 -#else /* not PSA_WANT_KEY_TYPE_CHACHA20 */ -// #error "PSA_WANT_ALG_CHACHA20_POLY1305 requires PSA_WANT_KEY_TYPE_CHACHA20" #endif /* PSA_WANT_KEY_TYPE_CHACHA20 */ #endif /* PSA_WANT_ALG_CHACHA20_POLY1305 */