From: Jiasheng Jiang Date: Thu, 9 Jan 2025 16:13:55 +0000 (+0000) Subject: providers/implementations/keymgmt/ec_kmgmt.c: Remove unused variable X-Git-Tag: openssl-3.5.0-alpha1~706 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=27b324f90a7fab330bcaff60967e377f577b8b64;p=thirdparty%2Fopenssl.git providers/implementations/keymgmt/ec_kmgmt.c: Remove unused variable Remove unused variable "group". CLA: trivial Signed-off-by: Jiasheng Jiang Reviewed-by: Dmitry Belyavskiy Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/26293) --- diff --git a/providers/implementations/keymgmt/ec_kmgmt.c b/providers/implementations/keymgmt/ec_kmgmt.c index eb346e73b2f..1ff00862a77 100644 --- a/providers/implementations/keymgmt/ec_kmgmt.c +++ b/providers/implementations/keymgmt/ec_kmgmt.c @@ -1107,7 +1107,6 @@ static int ec_gen_set_params(void *genctx, const OSSL_PARAM params[]) int ret = 0; struct ec_gen_ctx *gctx = genctx; const OSSL_PARAM *p; - EC_GROUP *group = NULL; if (!OSSL_FIPS_IND_SET_CTX_PARAM(gctx, OSSL_FIPS_IND_SETTABLE0, params, OSSL_PKEY_PARAM_FIPS_KEY_CHECK)) @@ -1136,7 +1135,6 @@ static int ec_gen_set_params(void *genctx, const OSSL_PARAM params[]) ret = 1; err: - EC_GROUP_free(group); return ret; }