[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20191015193210.20146-1-michielschuurmans@gmail.com>
Date: Tue, 15 Oct 2019 21:32:08 +0200
From: Michiel Schuurmans <michielschuurmans@...il.com>
To: unlisted-recipients:; (no To-header on input)
Cc: michielschuurmans@...il.com,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Zach Turner <turnerzdp@...il.com>,
Herbert Xu <herbert@...dor.apana.org.au>,
Eric Biggers <ebiggers@...gle.com>,
Ard Biesheuvel <ard.biesheuvel@...aro.org>,
YueHaibing <yuehaibing@...wei.com>,
Christina Quast <contact@...istina-quast.de>,
devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org
Subject: [PATCH] [PATCH] staging: rtl8192e: Fix checkpatch errors
Replace formatting as suggested by checkpatch.
Signed-off-by: Michiel Schuurmans <michielschuurmans@...il.com>
---
drivers/staging/rtl8192e/rtllib_crypt_ccmp.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/rtl8192e/rtllib_crypt_ccmp.c b/drivers/staging/rtl8192e/rtllib_crypt_ccmp.c
index 0cbf4a1a326b..e7478a1c204e 100644
--- a/drivers/staging/rtl8192e/rtllib_crypt_ccmp.c
+++ b/drivers/staging/rtl8192e/rtllib_crypt_ccmp.c
@@ -218,7 +218,6 @@ static int rtllib_ccmp_encrypt(struct sk_buff *skb, int hdr_len, void *priv)
return 0;
}
-
static int rtllib_ccmp_decrypt(struct sk_buff *skb, int hdr_len, void *priv)
{
struct rtllib_ccmp_data *key = priv;
@@ -233,7 +232,7 @@ static int rtllib_ccmp_decrypt(struct sk_buff *skb, int hdr_len, void *priv)
return -1;
}
- hdr = (struct rtllib_hdr_4addr *) skb->data;
+ hdr = (struct rtllib_hdr_4addr *)skb->data;
pos = skb->data + hdr_len;
keyidx = pos[3];
if (!(keyidx & (1 << 5))) {
@@ -278,7 +277,7 @@ static int rtllib_ccmp_decrypt(struct sk_buff *skb, int hdr_len, void *priv)
int aad_len, ret;
req = aead_request_alloc(key->tfm, GFP_ATOMIC);
- if(!req)
+ if (!req)
return -ENOMEM;
aad_len = ccmp_init_iv_and_aad(hdr, pn, iv, aad);
--
2.23.0
Powered by blists - more mailing lists