Fix coding style issues

Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
This commit is contained in:
Gabor Mezei 2023-02-06 18:06:54 +01:00
parent 05c138e172
commit 6bfbd36507
No known key found for this signature in database
GPG key ID: FEE76C0CF8C6267D

View file

@ -5224,7 +5224,7 @@ int mbedtls_ecp_mod_p521_raw(mbedtls_mpi_uint *N_p, size_t N_n)
/* Save and clear the A1 content of the shared limb to prevent it
from overwrite. */
mbedtls_mpi_uint remainder[P521_WIDTH] = {0};
mbedtls_mpi_uint remainder[P521_WIDTH] = { 0 };
remainder[0] = N_p[P521_WIDTH - 1] >> 9;
N_p[P521_WIDTH - 1] &= P521_MASK;
@ -5242,7 +5242,7 @@ int mbedtls_ecp_mod_p521_raw(mbedtls_mpi_uint *N_p, size_t N_n)
memset(NT_p, 0, sizeof(mbedtls_mpi_uint) * NT_n);
}
(void)mbedtls_mpi_core_add(N_p, N_p, remainder, P521_WIDTH);
(void) mbedtls_mpi_core_add(N_p, N_p, remainder, P521_WIDTH);
N_p[P521_WIDTH - 1] += carry;
return 0;