diff options
author | Bodo Möller <bodo@openssl.org> | 2002-10-28 13:19:08 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2002-10-28 13:19:08 +0000 |
commit | f72ed6153b2b54c2129354187a2f50193b68f0a1 (patch) | |
tree | cd4dd54bbe4bf0d0ebabad770ff8c30d3d54e6f6 /crypto/ec/ec2_smpl.c | |
parent | d652a0957f80c09bd9fecaffe2c19be8dbe5f88b (diff) |
remove superfluous code
Submitted by: Nils Larsch
Diffstat (limited to 'crypto/ec/ec2_smpl.c')
-rw-r--r-- | crypto/ec/ec2_smpl.c | 16 |
1 files changed, 7 insertions, 9 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; |