From: Bodo Möller Date: Mon, 28 Oct 2002 13:19:08 +0000 (+0000) Subject: remove superfluous code X-Git-Tag: OpenSSL_0_9_7-beta4~18^2~111 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=f72ed6153b2b54c2129354187a2f50193b68f0a1 remove superfluous code Submitted by: Nils Larsch --- 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. */