fix coding style and unnecessary assignment

Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
Jerry Yu 2022-08-31 10:35:52 +08:00
parent 63d40e6b46
commit 1e05b6dd6d

View file

@ -226,13 +226,12 @@ static int ssl_tls13_select_ciphersuite_for_psk(
* PSK is established or default to SHA-256 if no such algorithm is defined. * PSK is established or default to SHA-256 if no such algorithm is defined.
* *
*/ */
psk_hash_alg = PSA_ALG_SHA_256;
/* /*
* Search for a matching ciphersuite * Search for a matching ciphersuite
*/ */
for ( const unsigned char *p = cipher_suites ; for ( const unsigned char *p = cipher_suites;
p < cipher_suites_end ; p += 2 ) p < cipher_suites_end; p += 2 )
{ {
uint16_t cipher_suite; uint16_t cipher_suite;
const mbedtls_ssl_ciphersuite_t *ciphersuite_info; const mbedtls_ssl_ciphersuite_t *ciphersuite_info;