Staging: rtl8192e: Rename variable pStatusCode
authorTree Davies <tdavies@darkphysics.net>
Thu, 21 Sep 2023 03:25:11 +0000 (20:25 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 26 Sep 2023 09:12:19 +0000 (11:12 +0200)
Rename variable pStatusCode 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-8-tdavies@darkphysics.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl819x_BAProc.c

index 3468bdcea7fcd8beffa054465b1744addf2ba9c7..a5676f01855bccbc4abbbef47279d8fcd7222892 100644 (file)
@@ -306,7 +306,7 @@ int rtllib_rx_ADDBARsp(struct rtllib_device *ieee, struct sk_buff *skb)
        struct ba_record *pending_ba, *pAdmittedBA;
        struct tx_ts_record *pTS = NULL;
        u8 *dst = NULL, *pDialogToken = NULL, *tag = NULL;
-       u16 *pStatusCode = NULL, *pBaTimeoutVal = NULL;
+       u16 *status_code = NULL, *pBaTimeoutVal = NULL;
        union ba_param_set *pBaParamSet = NULL;
        u16                     ReasonCode;
 
@@ -321,7 +321,7 @@ int rtllib_rx_ADDBARsp(struct rtllib_device *ieee, struct sk_buff *skb)
        dst = (u8 *)(&rsp->addr2[0]);
        tag += sizeof(struct ieee80211_hdr_3addr);
        pDialogToken = tag + 2;
-       pStatusCode = (u16 *)(tag + 3);
+       status_code = (u16 *)(tag + 3);
        pBaParamSet = (union ba_param_set *)(tag + 5);
        pBaTimeoutVal = (u16 *)(tag + 7);
 
@@ -362,11 +362,11 @@ int rtllib_rx_ADDBARsp(struct rtllib_device *ieee, struct sk_buff *skb)
        } else {
                netdev_dbg(ieee->dev,
                           "%s(): Recv ADDBA Rsp. BA is admitted! Status code:%X\n",
-                          __func__, *pStatusCode);
+                          __func__, *status_code);
                deactivate_ba_entry(ieee, pending_ba);
        }
 
-       if (*pStatusCode == ADDBA_STATUS_SUCCESS) {
+       if (*status_code == ADDBA_STATUS_SUCCESS) {
                if (pBaParamSet->field.ba_policy == BA_POLICY_DELAYED) {
                        pTS->bAddBaReqDelayed = true;
                        deactivate_ba_entry(ieee, pAdmittedBA);