commit | 5f56df44f0b62002f2f5a71480d75e762e8948e1 | [log] [tgz] |
---|---|---|
author | Gabor Mezei <gabor.mezei@arm.com> | Fri Aug 12 14:41:54 2022 +0200 |
committer | Gabor Mezei <gabor.mezei@arm.com> | Fri Aug 12 14:41:54 2022 +0200 |
tree | 14d6ca8b3550b40bcce479622cd892116cfecd03 | |
parent | bf9da1dfb1fca79b2df17b30d40d99d6019d9df1 [diff] [blame] |
Remove redundant check Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
diff --git a/library/bignum_core.c b/library/bignum_core.c index d5db4b0..bb266a6 100644 --- a/library/bignum_core.c +++ b/library/bignum_core.c
@@ -201,7 +201,7 @@ /* 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 );