Remove redundant check
Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
This commit is contained in:
parent
bf9da1dfb1
commit
5f56df44f0
1 changed files with 1 additions and 1 deletions
|
@ -201,7 +201,7 @@ int mbedtls_mpi_core_read_be( mbedtls_mpi_uint *X,
|
||||||
|
|
||||||
/* Avoid calling `memcpy` with NULL source or destination argument,
|
/* Avoid calling `memcpy` with NULL source or destination argument,
|
||||||
* even if buflen is 0. */
|
* even if buflen is 0. */
|
||||||
if( buf != NULL && X != NULL )
|
if( buf != NULL )
|
||||||
{
|
{
|
||||||
Xp = (unsigned char*) X;
|
Xp = (unsigned char*) X;
|
||||||
memcpy( Xp + overhead, buf, buflen );
|
memcpy( Xp + overhead, buf, buflen );
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue