aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2014-01-29 03:41:56 +0100
committerBruce Ashfield <bruce.ashfield@windriver.com>2016-08-30 12:11:54 -0400
commit0d354538407c3db2136911215caccea226616ee8 (patch)
treebdb13d8697a2ab62be60836886d10c2fb83dab78
parentd0f1f2c9486c3a89d57175b041c4cb3be46572e1 (diff)
downloadlinux-yocto-0d354538407c3db2136911215caccea226616ee8.tar.gz
linux-yocto-0d354538407c3db2136911215caccea226616ee8.tar.bz2
linux-yocto-0d354538407c3db2136911215caccea226616ee8.zip
cryptodev: checkpatch
Signed-off-by: Phil Sutter <phil@nwl.cc>
-rw-r--r--drivers/staging/crypto/cryptodev/authenc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/crypto/cryptodev/authenc.c b/drivers/staging/crypto/cryptodev/authenc.c
index 2c51199856f4..46e8d65918ee 100644
--- a/drivers/staging/crypto/cryptodev/authenc.c
+++ b/drivers/staging/crypto/cryptodev/authenc.c
@@ -595,8 +595,8 @@ __crypto_auth_run_zc(struct csession *ses_ptr, struct kernel_crypt_auth_op *kcao
if (caop->flags & COP_FLAG_AEAD_SRTP_TYPE) {
if (unlikely(ses_ptr->cdata.init != 0 &&
- (ses_ptr->cdata.stream == 0 || ses_ptr->cdata.aead != 0)))
- {
+ (ses_ptr->cdata.stream == 0 ||
+ ses_ptr->cdata.aead != 0))) {
dprintk(0, KERN_ERR, "Only stream modes are allowed in SRTP mode (but not AEAD)\n");
return -EINVAL;
}
@@ -655,8 +655,8 @@ __crypto_auth_run_zc(struct csession *ses_ptr, struct kernel_crypt_auth_op *kcao
int dst_len;
if (unlikely(ses_ptr->cdata.init == 0 ||
- (ses_ptr->cdata.stream == 0 && ses_ptr->cdata.aead == 0)))
- {
+ (ses_ptr->cdata.stream == 0 &&
+ ses_ptr->cdata.aead == 0))) {
dprintk(0, KERN_ERR, "Only stream and AEAD ciphers are allowed for authenc\n");
ret = -EINVAL;
goto free_auth_buf;