Merge pull request #224 from tempesta-tech/development
Remove unused TG variable in mbedtls_mpi_gcd()
This commit is contained in:
commit
932e496ef5
1 changed files with 3 additions and 3 deletions
|
@ -2139,13 +2139,13 @@ int mbedtls_mpi_gcd( mbedtls_mpi *G, const mbedtls_mpi *A, const mbedtls_mpi *B
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
size_t lz, lzt;
|
size_t lz, lzt;
|
||||||
mbedtls_mpi TG, TA, TB;
|
mbedtls_mpi TA, TB;
|
||||||
|
|
||||||
MPI_VALIDATE_RET( G != NULL );
|
MPI_VALIDATE_RET( G != NULL );
|
||||||
MPI_VALIDATE_RET( A != NULL );
|
MPI_VALIDATE_RET( A != NULL );
|
||||||
MPI_VALIDATE_RET( B != NULL );
|
MPI_VALIDATE_RET( B != NULL );
|
||||||
|
|
||||||
mbedtls_mpi_init( &TG ); mbedtls_mpi_init( &TA ); mbedtls_mpi_init( &TB );
|
mbedtls_mpi_init( &TA ); mbedtls_mpi_init( &TB );
|
||||||
|
|
||||||
MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &TA, A ) );
|
MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &TA, A ) );
|
||||||
MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &TB, B ) );
|
MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &TB, B ) );
|
||||||
|
@ -2183,7 +2183,7 @@ int mbedtls_mpi_gcd( mbedtls_mpi *G, const mbedtls_mpi *A, const mbedtls_mpi *B
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
|
|
||||||
mbedtls_mpi_free( &TG ); mbedtls_mpi_free( &TA ); mbedtls_mpi_free( &TB );
|
mbedtls_mpi_free( &TA ); mbedtls_mpi_free( &TB );
|
||||||
|
|
||||||
return( ret );
|
return( ret );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue