aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2014-01-29 03:44:03 +0100
committerBruce Ashfield <bruce.ashfield@windriver.com>2016-08-30 12:11:54 -0400
commit46115366242be2926f7f0acba1ea04e784e44c14 (patch)
tree2beb8efe9670cd71b5c32ed4884af6c72faf13ee
parent0d354538407c3db2136911215caccea226616ee8 (diff)
downloadlinux-yocto-46115366242be2926f7f0acba1ea04e784e44c14.tar.gz
linux-yocto-46115366242be2926f7f0acba1ea04e784e44c14.tar.bz2
linux-yocto-46115366242be2926f7f0acba1ea04e784e44c14.zip
cryptodev: checkpatch
Signed-off-by: Phil Sutter <phil@nwl.cc>
-rw-r--r--drivers/staging/crypto/cryptodev/authenc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/staging/crypto/cryptodev/authenc.c b/drivers/staging/crypto/cryptodev/authenc.c
index 46e8d65918ee..80a88c1af7ed 100644
--- a/drivers/staging/crypto/cryptodev/authenc.c
+++ b/drivers/staging/crypto/cryptodev/authenc.c
@@ -662,8 +662,10 @@ __crypto_auth_run_zc(struct csession *ses_ptr, struct kernel_crypt_auth_op *kcao
goto free_auth_buf;
}
- if (caop->op == COP_ENCRYPT) dst_len = caop->len + cryptodev_cipher_get_tag_size(&ses_ptr->cdata);
- else dst_len = caop->len;
+ if (caop->op == COP_ENCRYPT)
+ dst_len = caop->len + cryptodev_cipher_get_tag_size(&ses_ptr->cdata);
+ else
+ dst_len = caop->len;
ret = get_userbuf(ses_ptr, caop->src, caop->len, caop->dst, dst_len,
kcaop->task, kcaop->mm, &src_sg, &dst_sg);