summaryrefslogtreecommitdiff
path: root/crypto/testmgr.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2009-06-24 13:48:13 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2009-06-24 13:48:13 +0800
commit1a0fd3c7e7618a3ff72b7f1f6de3d4deb7127c7b (patch)
treec05075282d1b0b6c72b0d6c1bd3c4bfc90866c1b /crypto/testmgr.c
parentcb5506345ce21a74e997871bb3d09e322d0b5528 (diff)
downloadlinux-crypto-1a0fd3c7e7618a3ff72b7f1f6de3d4deb7127c7b.tar.gz
linux-crypto-1a0fd3c7e7618a3ff72b7f1f6de3d4deb7127c7b.zip
crypto: testmgr - Remove hash size check
Until hash test vectors grow longer than 256 bytes, the only purpose of the check is to generate a gcc warning. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r--crypto/testmgr.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c
index e9e9d842..f9bea9d9 100644
--- a/crypto/testmgr.c
+++ b/crypto/testmgr.c
@@ -190,10 +190,6 @@ static int test_hash(struct crypto_ahash *tfm, struct hash_testvec *template,
hash_buff = xbuf[0];
- ret = -EINVAL;
- if (WARN_ON(template[i].psize > PAGE_SIZE))
- goto out;
-
memcpy(hash_buff, template[i].plaintext, template[i].psize);
sg_init_one(&sg[0], hash_buff, template[i].psize);