From: Jhih-Ming Huang <fbihjmeric@gmail.com>
To: Gilad Ben-Yossef <gilad@benyossef.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-crypto@vger.kernel.org,
driverdev-devel@linuxdriverproject.org,
devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org
Cc: Jhih-Ming Hunag <fbihjmeric@gmail.com>
Subject: [PATCH 2/6] staging: ccree: move brace { to previous line for if.
Date: Tue, 20 Jun 2017 22:52:00 +0800 [thread overview]
Message-ID: <1497970324-9725-3-git-send-email-fbihjmeric@gmail.com> (raw)
In-Reply-To: <1497970324-9725-1-git-send-email-fbihjmeric@gmail.com>
From: Jhih-Ming Hunag <fbihjmeric@gmail.com>
Move brace { to previous line for if.
Signed-off-by: Jhih-Ming Hunag <fbihjmeric@gmail.com>
---
drivers/staging/ccree/ssi_aead.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/staging/ccree/ssi_aead.c b/drivers/staging/ccree/ssi_aead.c
index ca3f11f..6bcab5a 100644
--- a/drivers/staging/ccree/ssi_aead.c
+++ b/drivers/staging/ccree/ssi_aead.c
@@ -1340,8 +1340,7 @@ static int validate_data_size(struct ssi_aead_ctx *ctx,
goto data_size_err;
if (ctx->cipher_mode == DRV_CIPHER_CCM)
break;
- if (ctx->cipher_mode == DRV_CIPHER_GCTR)
- {
+ if (ctx->cipher_mode == DRV_CIPHER_GCTR) {
if (areq_ctx->plaintext_authenticate_only == true)
areq_ctx->is_single_pass = false;
break;
@@ -1912,8 +1911,7 @@ static int config_gcm_context(struct aead_request *req) {
memcpy(req_ctx->gcm_iv_inc1, req->iv, 16);
- if (req_ctx->plaintext_authenticate_only == false)
- {
+ if (req_ctx->plaintext_authenticate_only == false) {
__be64 temp64;
temp64 = cpu_to_be64(req->assoclen * 8);
memcpy ( &req_ctx->gcm_len_block.lenA , &temp64, sizeof(temp64) );
--
2.7.4
next prev parent reply other threads:[~2017-06-20 14:52 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-20 14:51 [PATCH] staging: ccree: fix coding style error Jhih-Ming Huang
2017-06-20 14:51 ` [PATCH 1/6] Staging: ccree: add space around comma, brace and operator Jhih-Ming Huang
2017-06-20 14:52 ` Jhih-Ming Huang [this message]
2017-06-20 14:52 ` [PATCH 3/6] staging: ccree: move '{' to next line for function Jhih-Ming Huang
2017-06-20 14:52 ` [PATCH 4/6] staging: ccree: move * to close variable name instead of type Jhih-Ming Huang
2017-06-20 14:52 ` [PATCH 5/6] staging: ccree: remove improper space Jhih-Ming Huang
2017-06-20 14:52 ` [PATCH 6/6] staging: ccree: move else to follow close brace '}' Jhih-Ming Huang
2017-06-20 19:33 ` [PATCH] staging: ccree: fix coding style error Dan Carpenter
2017-06-22 13:42 ` Gilad Ben-Yossef
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1497970324-9725-3-git-send-email-fbihjmeric@gmail.com \
--to=fbihjmeric@gmail.com \
--cc=devel@driverdev.osuosl.org \
--cc=driverdev-devel@linuxdriverproject.org \
--cc=gilad@benyossef.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome