Remove redundant check

Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
This commit is contained in:
Gabor Mezei 2022-08-12 14:41:54 +02:00
parent bf9da1dfb1
commit 5f56df44f0
No known key found for this signature in database
GPG Key ID: F072ACA227ACD71D

View File

@ -201,7 +201,7 @@ int mbedtls_mpi_core_read_be( mbedtls_mpi_uint *X,
/* Avoid calling `memcpy` with NULL source or destination argument,
* even if buflen is 0. */
if( buf != NULL && X != NULL )
if( buf != NULL )
{
Xp = (unsigned char*) X;
memcpy( Xp + overhead, buf, buflen );