From 1e05b6dd6d90001d9c29f39011e7ccfe52c13f7e Mon Sep 17 00:00:00 2001 From: Jerry Yu Date: Wed, 31 Aug 2022 10:35:52 +0800 Subject: [PATCH] fix coding style and unnecessary assignment Signed-off-by: Jerry Yu --- library/ssl_tls13_server.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/library/ssl_tls13_server.c b/library/ssl_tls13_server.c index 20cb5c50b..a5b414e97 100644 --- a/library/ssl_tls13_server.c +++ b/library/ssl_tls13_server.c @@ -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_hash_alg = PSA_ALG_SHA_256; /* * Search for a matching ciphersuite */ - for ( const unsigned char *p = cipher_suites ; - p < cipher_suites_end ; p += 2 ) + for ( const unsigned char *p = cipher_suites; + p < cipher_suites_end; p += 2 ) { uint16_t cipher_suite; const mbedtls_ssl_ciphersuite_t *ciphersuite_info;