diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2009-06-24 01:48:13 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2009-06-24 01:48:13 -0400 |
commit | 259c5e05c13daaaea039b5bf29a2674701cfd68e (patch) | |
tree | d056969b5e47b5bb2878affe1fe1a9cc03f17f15 | |
parent | c9944881acf02b6f25fa62a0441a98b7dc0d7ae6 (diff) |
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>
-rw-r--r-- | crypto/testmgr.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c index e9e9d84293b9..f9bea9d989fa 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, | |||
190 | 190 | ||
191 | hash_buff = xbuf[0]; | 191 | hash_buff = xbuf[0]; |
192 | 192 | ||
193 | ret = -EINVAL; | ||
194 | if (WARN_ON(template[i].psize > PAGE_SIZE)) | ||
195 | goto out; | ||
196 | |||
197 | memcpy(hash_buff, template[i].plaintext, template[i].psize); | 193 | memcpy(hash_buff, template[i].plaintext, template[i].psize); |
198 | sg_init_one(&sg[0], hash_buff, template[i].psize); | 194 | sg_init_one(&sg[0], hash_buff, template[i].psize); |
199 | 195 | ||