浏览代码

crypto: aead - Ignore return value from crypto_unregister_alg

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>
Herbert Xu 10 年之前
父节点
当前提交
43615369ab
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 2 2
      crypto/aead.c
  2. 1 1
      include/crypto/internal/aead.h

+ 2 - 2
crypto/aead.c

@@ -890,9 +890,9 @@ int crypto_register_aead(struct aead_alg *alg)
 }
 }
 EXPORT_SYMBOL_GPL(crypto_register_aead);
 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);
 EXPORT_SYMBOL_GPL(crypto_unregister_aead);
 
 

+ 1 - 1
include/crypto/internal/aead.h

@@ -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_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,
 int aead_register_instance(struct crypto_template *tmpl,
 			   struct aead_instance *inst);
 			   struct aead_instance *inst);