Merge pull request #8178 from tom-cosgrove-arm/remove-tautological-null-pointer-check-sha3_c

Remove always-false null pointer check in sha3.c that Coverity complains about
This commit is contained in:
Paul Elliott 2023-09-11 10:54:36 +00:00 committed by GitHub
commit ce1bb3d1da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -200,7 +200,7 @@ int mbedtls_sha3_starts(mbedtls_sha3_context *ctx, mbedtls_sha3_id id)
}
}
if (p == NULL || p->id == MBEDTLS_SHA3_NONE) {
if (p->id == MBEDTLS_SHA3_NONE) {
return MBEDTLS_ERR_SHA3_BAD_INPUT_DATA;
}