From: Herbert Xu Date: Wed, 24 Jun 2009 05:48:13 +0000 (+0800) Subject: crypto: testmgr - Remove hash size check X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=259c5e05c13daaaea039b5bf29a2674701cfd68e;p=linux-beck.git 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 --- 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, 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);