From a16cd9634f69478a585ee9539306e67535e511e2 Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Wed, 26 Oct 2022 13:59:07 +0200 Subject: Cleanup --- src/lib/third_party/src/gcrypt/aesni.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/lib/third_party/src/gcrypt/aesni.c b/src/lib/third_party/src/gcrypt/aesni.c index fb5dbe798..b5d164662 100644 --- a/src/lib/third_party/src/gcrypt/aesni.c +++ b/src/lib/third_party/src/gcrypt/aesni.c @@ -94,17 +94,19 @@ int mbedtls_aesni_has_support( unsigned int what ) fclose(fd); has_aesni_checked = 1; - return(has_aesni_checked); } - } else - return(cached_has_aesni); + } + + return(cached_has_aesni); +#if 0 if (__get_cpuid(1, &eax, &ebx, &ecx, &edx) == 0) { return 0; } return ( (ecx & what) != 0 ); +#endif #elif defined(WIN32) || defined(WIN64) int cpuInfo[4]; -- cgit v1.2.3