Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 56fcf73a authored by Herbert Xu's avatar Herbert Xu
Browse files

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: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 6da9c233
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -96,9 +96,6 @@ static int gcm4106_aes_nx_set_key(struct crypto_aead *tfm,
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;