Skip to contentSkip to conversation

crypto: ecrdsa - remove empty sig_alg exit callback

PATCH In review Thorsten Blum 3 participants 3 messages May 19 – May 29

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 crypto/ecrdsa.c | 5 -----
 1 file changed, 5 deletions(-)
crypto/ecrdsa.c +0 -5
index 2c0602f0cd40..4fb9906b47a8 100644
@@ -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",
maintainer
#2 lore raw
In reply to Thorsten Blum
Quoted 10 lines · Thorsten Blum

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.

---
 crypto/ecrdsa.c | 5 -----
 1 file changed, 5 deletions(-)

Patch applied. Thanks.

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt