From: Thorsten Blum Date: Tue, 19 May 2026 08:36:32 +0000 (+0200) Subject: crypto: ecrdsa - remove empty sig_alg exit callback X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=370d6c3d411af8d34fcc227c244f4926fc743da7;p=thirdparty%2Flinux.git crypto: ecrdsa - remove empty sig_alg exit callback ecrdsa_exit_tfm() is empty, and sig_alg .exit is optional. The corresponding .init callback is not set either, so there is nothing to release in .exit. Remove the empty function and leave .exit unset. Signed-off-by: Thorsten Blum Reviewed-by: Lukas Wunner Signed-off-by: Herbert Xu --- diff --git a/crypto/ecrdsa.c b/crypto/ecrdsa.c index 0cd7eb3676041..93c9e7d76792a 100644 --- a/crypto/ecrdsa.c +++ b/crypto/ecrdsa.c @@ -259,16 +259,11 @@ static unsigned int ecrdsa_max_size(struct crypto_sig *tfm) return 2 * ctx->pub_key.ndigits * sizeof(u64); } -static void ecrdsa_exit_tfm(struct crypto_sig *tfm) -{ -} - static struct sig_alg ecrdsa_alg = { .verify = ecrdsa_verify, .set_pub_key = ecrdsa_set_pub_key, .key_size = ecrdsa_key_size, .max_size = ecrdsa_max_size, - .exit = ecrdsa_exit_tfm, .base = { .cra_name = "ecrdsa", .cra_driver_name = "ecrdsa-generic",