Skip to content

Commit 56fcf73

Browse files
committed
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 <[email protected]>
1 parent 6da9c23 commit 56fcf73

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/crypto/nx/nx-aes-gcm.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,6 @@ static int gcm4106_aes_nx_set_key(struct crypto_aead *tfm,
9696
static int gcm_aes_nx_setauthsize(struct crypto_aead *tfm,
9797
unsigned int authsize)
9898
{
99-
if (authsize > crypto_aead_alg(tfm)->maxauthsize)
100-
return -EINVAL;
101-
10299
crypto_aead_crt(tfm)->authsize = authsize;
103100

104101
return 0;

0 commit comments

Comments
 (0)