[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <3b179b52e00b398a22cd491e8fc61d4e0edd2a3d.1680375200.git.kamrankhadijadj@gmail.com>
Date: Sat, 1 Apr 2023 23:58:43 +0500
From: Khadija Kamran <kamrankhadijadj@...il.com>
To: outreachy@...ts.linux.dev
Cc: gregkh@...uxfoundation.org, linux-staging@...ts.linux.dev,
linux-kernel@...r.kernel.org, Deepak R Varma <drv@...lo.com>
Subject: [PATCH 4/5] staging: rtl8192e: avoid camel-case <dot11RSNAStatsCCMPReplays>
Linux kernel coding-style suggests to not use mixed-case names. Fix
checkpatch issue by changing the variable name from camel-case to
lower-case.
Suggested-by: Deepak R Varma <drv@...lo.com>
Signed-off-by: Khadija Kamran <kamrankhadijadj@...il.com>
---
drivers/staging/rtl8192e/rtllib_crypt_ccmp.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/rtl8192e/rtllib_crypt_ccmp.c b/drivers/staging/rtl8192e/rtllib_crypt_ccmp.c
index e8a3bc94efdc..1783a2eaae66 100644
--- a/drivers/staging/rtl8192e/rtllib_crypt_ccmp.c
+++ b/drivers/staging/rtl8192e/rtllib_crypt_ccmp.c
@@ -36,7 +36,7 @@ struct rtllib_ccmp_data {
/* .11 RSNA stats for CCMP */
u32 ccmp_format_errors;
- u32 dot11RSNAStatsCCMPReplays;
+ u32 ccmp_replays;
u32 dot11RSNAStatsCCMPDecryptErrors;
int key_idx;
@@ -264,7 +264,7 @@ static int rtllib_ccmp_decrypt(struct sk_buff *skb, int hdr_len, void *priv)
pn[5] = pos[0];
pos += 8;
if (memcmp(pn, key->rx_pn, CCMP_PN_LEN) <= 0) {
- key->dot11RSNAStatsCCMPReplays++;
+ key->ccmp_replays++;
return -4;
}
if (!tcb_desc->bHwSec) {
@@ -376,7 +376,7 @@ static void rtllib_ccmp_print_stats(struct seq_file *m, void *priv)
ccmp->key_idx, ccmp->key_set,
ccmp->tx_pn, ccmp->rx_pn,
ccmp->ccmp_format_errors,
- ccmp->dot11RSNAStatsCCMPReplays,
+ ccmp->ccmp_replays,
ccmp->dot11RSNAStatsCCMPDecryptErrors);
}
--
2.34.1
Powered by blists - more mailing lists