Skip to content

Commit

Permalink
crypto: aead - Ignore return value from crypto_unregister_alg
Browse files Browse the repository at this point in the history
No new code should be using the return value of crypto_unregister_alg
as it will become void soon.

Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
herbertx committed Jun 3, 2015
1 parent c2110f2 commit 4361536
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crypto/aead.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion include/crypto/internal/aead.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 4361536

Please sign in to comment.