From c95d9eedbf062714c43e49701287cd66cf8f988e Mon Sep 17 00:00:00 2001 From: Ron Eldor Date: Sun, 14 Apr 2019 17:36:10 +0300 Subject: [PATCH] Remove a redundant function call Remove a call to `mbedtls_mpi_bitlen()` since the returned value is overwritten in the line after. This is redundant since da31fa137a1183d3feed5981af6d05c550a8c005. Fixes #2377. --- library/bignum.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/library/bignum.c b/library/bignum.c index 98ee12a71..5987ea8b4 100644 --- a/library/bignum.c +++ b/library/bignum.c @@ -2410,8 +2410,6 @@ static int mpi_miller_rabin( const mbedtls_mpi *X, size_t rounds, MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &R, &W ) ); MBEDTLS_MPI_CHK( mbedtls_mpi_shift_r( &R, s ) ); - i = mbedtls_mpi_bitlen( X ); - for( i = 0; i < rounds; i++ ) { /*