diff options
author | Shane Lontis <shane.lontis@oracle.com> | 2020-08-24 11:45:57 +1000 |
---|---|---|
committer | Shane Lontis <shane.lontis@oracle.com> | 2020-09-05 15:41:30 +1000 |
commit | 0e540f231cbdc8e24e1496cf8ac265b62a983692 (patch) | |
tree | 268dddea1f992586846d55086913b3d17e50a3f4 /providers | |
parent | 7ce49eeaca2081ccd881fc1b22fac2d08d3bb69a (diff) |
Fix coverity CID #1466375 - Remove dead code.
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
(Merged from https://github.com/openssl/openssl/pull/12708)
Diffstat (limited to 'providers')
-rw-r--r-- | providers/implementations/encode_decode/encoder_ec.c | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/providers/implementations/encode_decode/encoder_ec.c b/providers/implementations/encode_decode/encoder_ec.c index ee64e2f802..ab8e82eb6e 100644 --- a/providers/implementations/encode_decode/encoder_ec.c +++ b/providers/implementations/encode_decode/encoder_ec.c @@ -69,23 +69,20 @@ static int ossl_prov_print_ec_param_explicit_gen(BIO *out, || EC_POINT_point2bn(group, point, form, gen, ctx) == NULL) return 0; - if (gen != NULL) { - switch (form) { - case POINT_CONVERSION_COMPRESSED: - glabel = "Generator (compressed):"; - break; - case POINT_CONVERSION_UNCOMPRESSED: - glabel = "Generator (uncompressed):"; - break; - case POINT_CONVERSION_HYBRID: - glabel = "Generator (hybrid):"; - break; - default: - return 0; - } - return ossl_prov_print_labeled_bignum(out, glabel, gen); + switch (form) { + case POINT_CONVERSION_COMPRESSED: + glabel = "Generator (compressed):"; + break; + case POINT_CONVERSION_UNCOMPRESSED: + glabel = "Generator (uncompressed):"; + break; + case POINT_CONVERSION_HYBRID: + glabel = "Generator (hybrid):"; + break; + default: + return 0; } - return 1; + return ossl_prov_print_labeled_bignum(out, glabel, gen); } /* Print explicit parameters */ |