From 9904c0f85e20078c1afa1a36fbd7326a67a30455 Mon Sep 17 00:00:00 2001
From: tb <>
Date: Fri, 11 Oct 2024 18:32:03 +0000
Subject: Remove NULL check in ec_asn1_pkparameters2group()

The callers already ensure that params != NULL.

ok jsing
---
 src/lib/libcrypto/ec/ec_asn1.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/lib/libcrypto/ec/ec_asn1.c b/src/lib/libcrypto/ec/ec_asn1.c
index 41eb2d2842..18cf856e80 100644
--- a/src/lib/libcrypto/ec/ec_asn1.c
+++ b/src/lib/libcrypto/ec/ec_asn1.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ec_asn1.c,v 1.63 2024/10/11 18:30:58 tb Exp $ */
+/* $OpenBSD: ec_asn1.c,v 1.64 2024/10/11 18:32:03 tb Exp $ */
 /*
  * Written by Nils Larsch for the OpenSSL project.
  */
@@ -964,10 +964,6 @@ ec_asn1_pkparameters2group(const ECPKPARAMETERS *params)
 	EC_GROUP *group;
 	int nid;
 
-	if (params == NULL) {
-		ECerror(EC_R_MISSING_PARAMETERS);
-		return NULL;
-	}
 	if (params->type == 0) {/* the curve is given by an OID */
 		if ((nid = OBJ_obj2nid(params->value.named_curve)) == NID_undef) {
 			ECerror(EC_R_UNKNOWN_GROUP);
-- 
cgit v1.2.3-55-g6feb