mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
crypto: nx - Remove unnecessary maxauthsize check
The crypto layer already checks maxauthsize when setauthsize is called. So there is no need to check it again within setauthsize. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
6da9c2335e
commit
56fcf73a29
1 changed files with 0 additions and 3 deletions
|
@ -96,9 +96,6 @@ out:
|
|||
static int gcm_aes_nx_setauthsize(struct crypto_aead *tfm,
|
||||
unsigned int authsize)
|
||||
{
|
||||
if (authsize > crypto_aead_alg(tfm)->maxauthsize)
|
||||
return -EINVAL;
|
||||
|
||||
crypto_aead_crt(tfm)->authsize = authsize;
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue