From f72ed6153b2b54c2129354187a2f50193b68f0a1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bodo=20M=C3=B6ller?= Date: Mon, 28 Oct 2002 13:19:08 +0000 Subject: [PATCH] remove superfluous code Submitted by: Nils Larsch --- crypto/ec/ec2_smpl.c | 16 +++++++--------- crypto/ec/ec_lcl.h | 5 ----- 2 files changed, 7 insertions(+), 14 deletions(-) diff --git a/crypto/ec/ec2_smpl.c b/crypto/ec/ec2_smpl.c index b218c5639a..2f2e7b7f1b 100644 --- a/crypto/ec/ec2_smpl.c +++ b/crypto/ec/ec2_smpl.c @@ -234,16 +234,14 @@ int ec_GF2m_simple_group_get_curve(const EC_GROUP *group, BIGNUM *p, BIGNUM *a, if (!BN_copy(p, &group->field)) return 0; } - if (a != NULL || b != NULL) + if (a != NULL) { - if (a != NULL) - { - if (!BN_copy(a, &group->a)) goto err; - } - if (b != NULL) - { - if (!BN_copy(b, &group->b)) goto err; - } + if (!BN_copy(a, &group->a)) goto err; + } + + if (b != NULL) + { + if (!BN_copy(b, &group->b)) goto err; } ret = 1; diff --git a/crypto/ec/ec_lcl.h b/crypto/ec/ec_lcl.h index ae67ccfdc2..247c985a23 100644 --- a/crypto/ec/ec_lcl.h +++ b/crypto/ec/ec_lcl.h @@ -89,11 +89,6 @@ #include -/* internal function: ec_group_index2nid() returns the NID of curve - * with the given index i from the internal curve list */ -int ec_group_index2nid(int i); - - /* Structure details are not part of the exported interface, * so all this may change in future versions. */ -- 2.34.1