Staging: rtl8192e: Rename variable DelbaParamSet
authorTree Davies <tdavies@darkphysics.net>
Mon, 27 Nov 2023 05:43:01 +0000 (21:43 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Nov 2023 13:59:20 +0000 (13:59 +0000)
Rename variable DelbaParamSet to del_ba_param_set to fix checkpatch
warning Avoid CamelCase.

Signed-off-by: Tree Davies <tdavies@darkphysics.net>
Link: https://lore.kernel.org/r/20231127054305.148276-12-tdavies@darkphysics.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl819x_BAProc.c

index 2053feb51f619cb67fa674d2ea80d47c06549779..bd037069d4f3d97e6824593a577de5698b0c812e 100644 (file)
@@ -127,7 +127,7 @@ static struct sk_buff *rtllib_DELBA(struct rtllib_device *ieee, u8 *dst,
                                    struct ba_record *ba,
                                    enum tr_select TxRxSelect, u16 reason_code)
 {
-       union delba_param_set DelbaParamSet;
+       union delba_param_set del_ba_param_set;
        struct sk_buff *skb = NULL;
        struct ieee80211_hdr_3addr *del_ba = NULL;
        u8 *tag = NULL;
@@ -137,10 +137,10 @@ static struct sk_buff *rtllib_DELBA(struct rtllib_device *ieee, u8 *dst,
                netdev_dbg(ieee->dev, "%s(): reason_code(%d) sentd to: %pM\n",
                           __func__, reason_code, dst);
 
-       memset(&DelbaParamSet, 0, 2);
+       memset(&del_ba_param_set, 0, 2);
 
-       DelbaParamSet.field.initiator = (TxRxSelect == TX_DIR) ? 1 : 0;
-       DelbaParamSet.field.tid = ba->ba_param_set.field.tid;
+       del_ba_param_set.field.initiator = (TxRxSelect == TX_DIR) ? 1 : 0;
+       del_ba_param_set.field.tid      = ba->ba_param_set.field.tid;
 
        skb = dev_alloc_skb(len + sizeof(struct ieee80211_hdr_3addr));
        if (!skb)
@@ -160,7 +160,7 @@ static struct sk_buff *rtllib_DELBA(struct rtllib_device *ieee, u8 *dst,
        *tag++ = ACT_CAT_BA;
        *tag++ = ACT_DELBA;
 
-       put_unaligned_le16(DelbaParamSet.short_data, tag);
+       put_unaligned_le16(del_ba_param_set.short_data, tag);
        tag += 2;
 
        put_unaligned_le16(reason_code, tag);