Fix style of preprocessor expression

We use logical '&&' everywhere, let's be consistent.

(Unless I'm mistaken, binary '&' happens to give the same results for
booleans so this wasn't an actual bug, just style/readability issue.)

Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
Manuel Pégourié-Gonnard 2024-04-02 12:12:40 +02:00
parent ebdca796a1
commit 0a4ffa4c3e

View File

@ -733,7 +733,7 @@ static int smoke_test_key(mbedtls_svc_key_id_t key)
buffer, sizeof(buffer), NULL, 0,
buffer, sizeof(buffer), &length));
#if defined(PSA_WANT_ALG_SHA_256) & defined(MBEDTLS_PSA_BUILTIN_ALG_HKDF)
#if defined(PSA_WANT_ALG_SHA_256) && defined(MBEDTLS_PSA_BUILTIN_ALG_HKDF)
/* Try the key in a plain key derivation. */
PSA_ASSERT(psa_key_derivation_setup(&derivation_operation,
PSA_ALG_HKDF(PSA_ALG_SHA_256)));
@ -768,7 +768,7 @@ static int smoke_test_key(mbedtls_svc_key_id_t key)
}
#else
(void) derivation_operation;
#endif /* PSA_WANT_ALG_SHA_256 & PSA_WANT_ALG_HKDF */
#endif /* PSA_WANT_ALG_SHA_256 && PSA_WANT_ALG_HKDF */
ok = 1;