Staging: rtl8192e: Rename variable StatusCode
authorTree Davies <tdavies@darkphysics.net>
Thu, 21 Sep 2023 03:25:15 +0000 (20:25 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 26 Sep 2023 09:12:20 +0000 (11:12 +0200)
Rename variable StatusCode to status_code to fix checkpatch warning Avoid
CamelCase.

Signed-off-by: Tree Davies <tdavies@darkphysics.net>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/20230921032515.96152-12-tdavies@darkphysics.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl819x_BAProc.c

index b3a8a6959622ee8a16080d82a9fbb8a64e9b1fad..820b5ee2ded1c73b3b17a13549006f44aa857ace 100644 (file)
@@ -65,7 +65,7 @@ void rtllib_reset_ba_entry(struct ba_record *pBA)
 
 static struct sk_buff *rtllib_ADDBA(struct rtllib_device *ieee, u8 *dst,
                                    struct ba_record *pBA,
-                                   u16 StatusCode, u8 type)
+                                   u16 status_code, u8 type)
 {
        struct sk_buff *skb = NULL;
        struct ieee80211_hdr_3addr *BAReq = NULL;
@@ -101,7 +101,7 @@ static struct sk_buff *rtllib_ADDBA(struct rtllib_device *ieee, u8 *dst,
        *tag++ = pBA->dialog_token;
 
        if (type == ACT_ADDBARSP) {
-               put_unaligned_le16(StatusCode, tag);
+               put_unaligned_le16(status_code, tag);
                tag += 2;
        }
 
@@ -187,11 +187,11 @@ static void rtllib_send_ADDBAReq(struct rtllib_device *ieee, u8 *dst,
 }
 
 static void rtllib_send_ADDBARsp(struct rtllib_device *ieee, u8 *dst,
-                                struct ba_record *pBA, u16 StatusCode)
+                                struct ba_record *pBA, u16 status_code)
 {
        struct sk_buff *skb;
 
-       skb = rtllib_ADDBA(ieee, dst, pBA, StatusCode, ACT_ADDBARSP);
+       skb = rtllib_ADDBA(ieee, dst, pBA, status_code, ACT_ADDBARSP);
        if (skb)
                softmac_mgmt_xmit(skb, ieee);
        else