Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

crypto: omap-des - avoid unnecessary spam with bad cryptlen

Remove the error print in this case, and just return the error.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Tero Kristo and committed by
Herbert Xu
96846223 04a4616e

+1 -3
+1 -3
drivers/crypto/omap-des.c
··· 637 637 !!(mode & FLAGS_ENCRYPT), 638 638 !!(mode & FLAGS_CBC)); 639 639 640 - if (!IS_ALIGNED(req->cryptlen, DES_BLOCK_SIZE)) { 641 - pr_err("request size is not exact amount of DES blocks\n"); 640 + if (!IS_ALIGNED(req->cryptlen, DES_BLOCK_SIZE)) 642 641 return -EINVAL; 643 - } 644 642 645 643 dd = omap_des_find_dev(ctx); 646 644 if (!dd)