crypto: aead - Ignore return value from crypto_unregister_alg
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 28 May 2015 14:07:57 +0000 (22:07 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 3 Jun 2015 02:48:34 +0000 (10:48 +0800)
No new code should be using the return value of crypto_unregister_alg
as it will become void soon.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/aead.c
include/crypto/internal/aead.h

index 4bab3cff357864bbaccf8b57f45723502eae9cf3..ac4479297864d53a6511fd39e817998140f376f6 100644 (file)
@@ -890,9 +890,9 @@ int crypto_register_aead(struct aead_alg *alg)
 }
 EXPORT_SYMBOL_GPL(crypto_register_aead);
 
-int crypto_unregister_aead(struct aead_alg *alg)
+void crypto_unregister_aead(struct aead_alg *alg)
 {
-       return crypto_unregister_alg(&alg->base);
+       crypto_unregister_alg(&alg->base);
 }
 EXPORT_SYMBOL_GPL(crypto_unregister_aead);
 
index f068d74da9f6381632538b7fa0e0a0573c73c4c6..3cb35d8829304ade97777de3c889960793957fd1 100644 (file)
@@ -151,7 +151,7 @@ static inline unsigned int crypto_aead_maxauthsize(struct crypto_aead *aead)
 }
 
 int crypto_register_aead(struct aead_alg *alg);
-int crypto_unregister_aead(struct aead_alg *alg);
+void crypto_unregister_aead(struct aead_alg *alg);
 int aead_register_instance(struct crypto_template *tmpl,
                           struct aead_instance *inst);