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>
This commit is contained in:
Tero Kristo
2019-11-05 16:01:09 +02:00
committed by Herbert Xu
parent 04a4616e6a
commit 96846223ac

View File

@ -637,10 +637,8 @@ static int omap_des_crypt(struct skcipher_request *req, unsigned long mode)
!!(mode & FLAGS_ENCRYPT), !!(mode & FLAGS_ENCRYPT),
!!(mode & FLAGS_CBC)); !!(mode & FLAGS_CBC));
if (!IS_ALIGNED(req->cryptlen, DES_BLOCK_SIZE)) { if (!IS_ALIGNED(req->cryptlen, DES_BLOCK_SIZE))
pr_err("request size is not exact amount of DES blocks\n");
return -EINVAL; return -EINVAL;
}
dd = omap_des_find_dev(ctx); dd = omap_des_find_dev(ctx);
if (!dd) if (!dd)