diff options
author | Khadija Kamran <kamrankhadijadj@gmail.com> | 2023-04-02 16:32:45 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-04-05 16:39:08 +0200 |
commit | f60fc1311bcc7601750ec38bb215d6202c1c9461 (patch) | |
tree | aeec811a3f076728e46cdaa5cd41305d1d7bead1 /drivers/staging | |
parent | staging: rtl8192e: avoid CamelCase <dot11RSNAStatsCCMPFormatErrors> (diff) | |
download | linux-f60fc1311bcc7601750ec38bb215d6202c1c9461.tar.xz linux-f60fc1311bcc7601750ec38bb215d6202c1c9461.zip |
staging: rtl8192e: avoid CamelCase <dot11RSNAStatsCCMPReplays>
Linux kernel coding-style suggests to not use mixed-case names. Fix
checkpatch issue by changing the variable name from camel case to snake
case.
Signed-off-by: Khadija Kamran <kamrankhadijadj@gmail.com>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/7166160c0face9e32dbb28c44727eb8856173f0a.1680445545.git.kamrankhadijadj@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/rtl8192e/rtllib_crypt_ccmp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/rtl8192e/rtllib_crypt_ccmp.c b/drivers/staging/rtl8192e/rtllib_crypt_ccmp.c index d37ca72678c8..448c0a931c78 100644 --- a/drivers/staging/rtl8192e/rtllib_crypt_ccmp.c +++ b/drivers/staging/rtl8192e/rtllib_crypt_ccmp.c @@ -35,7 +35,7 @@ struct rtllib_ccmp_data { u8 rx_pn[CCMP_PN_LEN]; u32 dot11rsna_stats_ccmp_format_errors; - u32 dot11RSNAStatsCCMPReplays; + u32 dot11rsna_stats_ccmp_replays; u32 dot11RSNAStatsCCMPDecryptErrors; int key_idx; @@ -263,7 +263,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->dot11rsna_stats_ccmp_replays++; return -4; } if (!tcb_desc->bHwSec) { @@ -375,7 +375,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->dot11rsna_stats_ccmp_format_errors, - ccmp->dot11RSNAStatsCCMPReplays, + ccmp->dot11rsna_stats_ccmp_replays, ccmp->dot11RSNAStatsCCMPDecryptErrors); } |