From 5f56df44f0b62002f2f5a71480d75e762e8948e1 Mon Sep 17 00:00:00 2001 From: Gabor Mezei Date: Fri, 12 Aug 2022 14:41:54 +0200 Subject: [PATCH] Remove redundant check Signed-off-by: Gabor Mezei --- library/bignum_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/bignum_core.c b/library/bignum_core.c index d5db4b0b0d..bb266a6eea 100644 --- a/library/bignum_core.c +++ b/library/bignum_core.c @@ -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 );