staging: rtl8192e: avoid CamelCase <dot11RSNAStatsCCMPFormatErrors>
authorKhadija Kamran <kamrankhadijadj@gmail.com>
Sun, 2 Apr 2023 14:32:44 +0000 (19:32 +0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Apr 2023 14:39:08 +0000 (16:39 +0200)
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/ebfd9c40400eac872b9af2a5120b0829ff71e077.1680445545.git.kamrankhadijadj@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtllib_crypt_ccmp.c

index 8d3067a..d37ca72 100644 (file)
@@ -34,7 +34,7 @@ struct rtllib_ccmp_data {
        u8 tx_pn[CCMP_PN_LEN];
        u8 rx_pn[CCMP_PN_LEN];
 
-       u32 dot11RSNAStatsCCMPFormatErrors;
+       u32 dot11rsna_stats_ccmp_format_errors;
        u32 dot11RSNAStatsCCMPReplays;
        u32 dot11RSNAStatsCCMPDecryptErrors;
 
@@ -226,7 +226,7 @@ static int rtllib_ccmp_decrypt(struct sk_buff *skb, int hdr_len, void *priv)
        u8 pn[6];
 
        if (skb->len < hdr_len + CCMP_HDR_LEN + CCMP_MIC_LEN) {
-               key->dot11RSNAStatsCCMPFormatErrors++;
+               key->dot11rsna_stats_ccmp_format_errors++;
                return -1;
        }
 
@@ -238,7 +238,7 @@ static int rtllib_ccmp_decrypt(struct sk_buff *skb, int hdr_len, void *priv)
                        pr_debug("CCMP: received packet without ExtIV flag from %pM\n",
                                 hdr->addr2);
                }
-               key->dot11RSNAStatsCCMPFormatErrors++;
+               key->dot11rsna_stats_ccmp_format_errors++;
                return -2;
        }
        keyidx >>= 6;
@@ -374,7 +374,7 @@ static void rtllib_ccmp_print_stats(struct seq_file *m, void *priv)
                   "key[%d] alg=CCMP key_set=%d tx_pn=%pM rx_pn=%pM format_errors=%d replays=%d decrypt_errors=%d\n",
                   ccmp->key_idx, ccmp->key_set,
                   ccmp->tx_pn, ccmp->rx_pn,
-                  ccmp->dot11RSNAStatsCCMPFormatErrors,
+                  ccmp->dot11rsna_stats_ccmp_format_errors,
                   ccmp->dot11RSNAStatsCCMPReplays,
                   ccmp->dot11RSNAStatsCCMPDecryptErrors);
 }