From d6441da4c50f0c88930d3fd9158c516c99c73812 Mon Sep 17 00:00:00 2001 From: Gabor Mezei Date: Mon, 10 Oct 2022 13:05:16 +0200 Subject: [PATCH] Remove redundant memory initialization When memory is allocated it is also initialized with 0. Signed-off-by: Gabor Mezei --- tests/suites/test_suite_mpi.function | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/suites/test_suite_mpi.function b/tests/suites/test_suite_mpi.function index 985801b9a6..bfadde9d3c 100644 --- a/tests/suites/test_suite_mpi.function +++ b/tests/suites/test_suite_mpi.function @@ -919,7 +919,6 @@ void mpi_mod_raw_cond_assign( data_t * input_X, ASSERT_ALLOC( Y, len ); ASSERT_ALLOC( buff_m, len ); - memset( buff_m, 0, len ); mbedtls_mpi_mod_modulus_init( &m ); TEST_ASSERT( mbedtls_mpi_mod_modulus_setup( &m, buff_m, copy_limbs, @@ -994,7 +993,6 @@ void mpi_mod_raw_cond_swap( data_t * input_X, ASSERT_ALLOC( tmp_Y, len ); ASSERT_ALLOC( buff_m, input_len ); - memset( buff_m, 0, input_len ); mbedtls_mpi_mod_modulus_init( &m ); TEST_ASSERT( mbedtls_mpi_mod_modulus_setup( &m, buff_m, copy_limbs,