Commit 259c5e05c13daaaea039b5bf29a2674701cfd68e

Authored by Herbert Xu
1 parent c9944881ac

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>

Showing 1 changed file with 0 additions and 4 deletions Side-by-side Diff

... ... @@ -190,10 +190,6 @@
190 190  
191 191 hash_buff = xbuf[0];
192 192  
193   - ret = -EINVAL;
194   - if (WARN_ON(template[i].psize > PAGE_SIZE))
195   - goto out;
196   -
197 193 memcpy(hash_buff, template[i].plaintext, template[i].psize);
198 194 sg_init_one(&sg[0], hash_buff, template[i].psize);
199 195