From: JiashengJiang Date: Tue, 1 Apr 2025 01:42:38 +0000 (-0400) Subject: test/tls-provider.c: Remove redundant check X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=511cfacf8c15737a63e944b8faf044dea7505263;p=thirdparty%2Fopenssl.git test/tls-provider.c: Remove redundant check Remove "if (key != NULL)" since there is already a check before. CLA: trivial Signed-off-by: JiashengJiang Reviewed-by: Paul Dale Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/27220) --- diff --git a/test/tls-provider.c b/test/tls-provider.c index 4d3bbfe1010..5afa5b5d728 100644 --- a/test/tls-provider.c +++ b/test/tls-provider.c @@ -716,10 +716,8 @@ static void xor_freekey(void *keydata) return; assert(refcnt == 0); - if (key != NULL) { - OPENSSL_free(key->tls_name); - key->tls_name = NULL; - } + OPENSSL_free(key->tls_name); + key->tls_name = NULL; CRYPTO_FREE_REF(&key->references); OPENSSL_free(key); }