diff mbox

security/keys: Adding newline after declaration

Message ID 1504762905-2424-1-git-send-email-pushkar.iit@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

pjambhlekar Sept. 7, 2017, 5:41 a.m. UTC
Fixing checkpatch warning to add newline after declaration

Signed-off-by: Pushkar Jambhlekar <pushkar.iit@gmail.com>
---
 security/keys/big_key.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Joe Perches Sept. 7, 2017, 5:54 a.m. UTC | #1
On Thu, 2017-09-07 at 11:11 +0530, Pushkar Jambhlekar wrote:
> Fixing checkpatch warning to add newline after declaration
[]
> diff --git a/security/keys/big_key.c b/security/keys/big_key.c
[]
> @@ -93,6 +93,7 @@ static int big_key_crypt(enum big_key_op op, u8 *data, size_t datalen, u8 *key)
>  {
>  	int ret = -EINVAL;
>  	struct scatterlist sgio;
> +
>  	SKCIPHER_REQUEST_ON_STACK(req, big_key_skcipher);

checkpatch doesn't know that SKCIPHER_REQUEST_ON_STACK
is actually 2 declarations.

--
To unsubscribe from this list: send the line "unsubscribe linux-security-module" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/security/keys/big_key.c b/security/keys/big_key.c
index 835c1ab..bc4c6eb 100644
--- a/security/keys/big_key.c
+++ b/security/keys/big_key.c
@@ -93,6 +93,7 @@  static int big_key_crypt(enum big_key_op op, u8 *data, size_t datalen, u8 *key)
 {
 	int ret = -EINVAL;
 	struct scatterlist sgio;
+
 	SKCIPHER_REQUEST_ON_STACK(req, big_key_skcipher);
 
 	if (crypto_skcipher_setkey(big_key_skcipher, key, ENC_KEY_SIZE)) {