staging: rtl8712: fix camelcase in UserPriority
authorAsif Khan <asif.kgauri@gmail.com>
Sun, 4 Sep 2022 19:24:00 +0000 (00:54 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Sep 2022 07:55:19 +0000 (09:55 +0200)
Replace camelcase variable UserPriority with snake case
variable user_priority.

Signed-off-by: Asif Khan <asif.kgauri@gmail.com>
Link: https://lore.kernel.org/r/20220904192400.8309-1-asif.kgauri@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/xmit_linux.c

index 4a93839bf9474de9e4d4fe699809a5c1195c44b7..aaabd1189ab0dd3b995f78492e0679e35c7014e7 100644 (file)
@@ -66,16 +66,16 @@ void r8712_set_qos(struct pkt_file *ppktfile, struct pkt_attrib *pattrib)
 {
        struct ethhdr etherhdr;
        struct iphdr ip_hdr;
-       u16 UserPriority = 0;
+       u16 user_priority = 0;
 
        _r8712_open_pktfile(ppktfile->pkt, ppktfile);
        _r8712_pktfile_read(ppktfile, (unsigned char *)&etherhdr, ETH_HLEN);
 
-       /* get UserPriority from IP hdr*/
+       /* get user_priority from IP hdr*/
        if (pattrib->ether_type == 0x0800) {
                _r8712_pktfile_read(ppktfile, (u8 *)&ip_hdr, sizeof(ip_hdr));
-               /*UserPriority = (ntohs(ip_hdr.tos) >> 5) & 0x3 ;*/
-               UserPriority = ip_hdr.tos >> 5;
+               /*user_priority = (ntohs(ip_hdr.tos) >> 5) & 0x3 ;*/
+               user_priority = ip_hdr.tos >> 5;
        } else {
                /* "When priority processing of data frames is supported,
                 * a STA's SME should send EAPOL-Key frames at the highest
@@ -83,9 +83,9 @@ void r8712_set_qos(struct pkt_file *ppktfile, struct pkt_attrib *pattrib)
                 */
 
                if (pattrib->ether_type == 0x888e)
-                       UserPriority = 7;
+                       user_priority = 7;
        }
-       pattrib->priority = UserPriority;
+       pattrib->priority = user_priority;
        pattrib->hdrlen = WLAN_HDR_A3_QOS_LEN;
        pattrib->subtype = WIFI_QOS_DATA_TYPE;
 }