]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
crypto: ecrdsa - remove empty sig_alg exit callback
authorThorsten Blum <thorsten.blum@linux.dev>
Tue, 19 May 2026 08:36:32 +0000 (10:36 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 29 May 2026 05:54:43 +0000 (13:54 +0800)
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 <thorsten.blum@linux.dev>
Reviewed-by: Lukas Wunner <lukas@wunner.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/ecrdsa.c

index 0cd7eb3676041ff4ee23d9e7030b400c67fb1d21..93c9e7d76792af5e31361479a11ddeff5620a7b0 100644 (file)
@@ -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",