From 876346e451008f8322191a0cdf35a32d59cbe0d1 Mon Sep 17 00:00:00 2001 From: Tom Cosgrove Date: Sat, 9 Sep 2023 14:24:46 +0100 Subject: [PATCH] Remove always-false null pointer check in sha3.c that Coverity complains about Signed-off-by: Tom Cosgrove --- library/sha3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/sha3.c b/library/sha3.c index dca579048..4c1a1a9d4 100644 --- a/library/sha3.c +++ b/library/sha3.c @@ -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; }