diff --git a/wolfcrypt/src/sha256.c b/wolfcrypt/src/sha256.c index 40eb0f421..4f8e8b011 100755 --- a/wolfcrypt/src/sha256.c +++ b/wolfcrypt/src/sha256.c @@ -45,11 +45,11 @@ } int wc_InitSha256_ex(Sha256* sha, void* heap, int devId) { + (void)heap; + (void)devId; if (sha == NULL) { return BAD_FUNC_ARG; } - (void)heap; - (void)devId; return InitSha256_fips(sha); } int wc_Sha256Update(Sha256* sha, const byte* data, word32 len) @@ -1926,9 +1926,6 @@ static int Transform_AVX2(Sha256* sha256) int wc_InitSha256(Sha256* sha256) { - if (sha256 == NULL) { - return BAD_FUNC_ARG; - } return wc_InitSha256_ex(sha256, NULL, INVALID_DEVID); }