mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-18 14:42:24 +00:00
Readability improvement
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
c217f48251
commit
99a82dce74
@ -354,7 +354,7 @@ int mbedtls_test_read_mpi_core( mbedtls_mpi_uint **pX, size_t *plimbs,
|
|||||||
if( *pX != NULL )
|
if( *pX != NULL )
|
||||||
return( MBEDTLS_ERR_MPI_BAD_INPUT_DATA );
|
return( MBEDTLS_ERR_MPI_BAD_INPUT_DATA );
|
||||||
|
|
||||||
*plimbs = ( input->len + sizeof( **pX ) - 1 ) / sizeof( **pX );
|
*plimbs = CHARS_TO_LIMBS( input->len );
|
||||||
if( *plimbs == 0 )
|
if( *plimbs == 0 )
|
||||||
return( 0 );
|
return( 0 );
|
||||||
*pX = mbedtls_calloc( *plimbs, sizeof( **pX ) );
|
*pX = mbedtls_calloc( *plimbs, sizeof( **pX ) );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user