staging: rtl8192e: rename bValid to b_valid in ba_record struct
authorWilliam Durand <will+git@drnd.me>
Fri, 19 Feb 2021 23:11:23 +0000 (23:11 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Mar 2021 08:25:27 +0000 (09:25 +0100)
Fixes a checkpatch CHECK issue.

Signed-off-by: William Durand <will+git@drnd.me>
Link: https://lore.kernel.org/r/20210219231128.27119-3-will+git@drnd.me
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl819x_BA.h
drivers/staging/rtl8192e/rtl819x_BAProc.c
drivers/staging/rtl8192e/rtllib_tx.c

index 61e820e2ffb91827ecb997663fc0efe8edce4bae..fe85237e2ea97d9a5ae772f848dbc253a35a4f6e 100644 (file)
@@ -50,7 +50,7 @@ union delba_param_set {
 
 struct ba_record {
        struct timer_list               timer;
-       u8                              bValid;
+       u8                              b_valid;
        u8                              DialogToken;
        union ba_param_set BaParamSet;
        u16                             BaTimeoutValue;
index f66d11263f9523dec50c10692333f9aefb53b7fa..9a865f5531930cfc3ff5ee4d1e9dce98b1e7c61b 100644 (file)
 static void ActivateBAEntry(struct rtllib_device *ieee, struct ba_record *pBA,
                            u16 Time)
 {
-       pBA->bValid = true;
+       pBA->b_valid = true;
        if (Time != 0)
                mod_timer(&pBA->timer, jiffies + msecs_to_jiffies(Time));
 }
 
 static void DeActivateBAEntry(struct rtllib_device *ieee, struct ba_record *pBA)
 {
-       pBA->bValid = false;
+       pBA->b_valid = false;
        del_timer_sync(&pBA->timer);
 }
 
@@ -30,12 +30,12 @@ static u8 TxTsDeleteBA(struct rtllib_device *ieee, struct tx_ts_record *pTxTs)
        struct ba_record *pPendingBa = &pTxTs->TxPendingBARecord;
        u8 bSendDELBA = false;
 
-       if (pPendingBa->bValid) {
+       if (pPendingBa->b_valid) {
                DeActivateBAEntry(ieee, pPendingBa);
                bSendDELBA = true;
        }
 
-       if (pAdmittedBa->bValid) {
+       if (pAdmittedBa->b_valid) {
                DeActivateBAEntry(ieee, pAdmittedBa);
                bSendDELBA = true;
        }
@@ -47,7 +47,7 @@ static u8 RxTsDeleteBA(struct rtllib_device *ieee, struct rx_ts_record *pRxTs)
        struct ba_record *pBa = &pRxTs->RxAdmittedBARecord;
        u8                      bSendDELBA = false;
 
-       if (pBa->bValid) {
+       if (pBa->b_valid) {
                DeActivateBAEntry(ieee, pBa);
                bSendDELBA = true;
        }
@@ -57,7 +57,7 @@ static u8 RxTsDeleteBA(struct rtllib_device *ieee, struct rx_ts_record *pRxTs)
 
 void ResetBaEntry(struct ba_record *pBA)
 {
-       pBA->bValid                     = false;
+       pBA->b_valid                    = false;
        pBA->BaParamSet.short_data      = 0;
        pBA->BaTimeoutValue             = 0;
        pBA->DialogToken                = 0;
@@ -357,11 +357,11 @@ int rtllib_rx_ADDBARsp(struct rtllib_device *ieee, struct sk_buff *skb)
        pAdmittedBA = &pTS->TxAdmittedBARecord;
 
 
-       if (pAdmittedBA->bValid) {
+       if (pAdmittedBA->b_valid) {
                netdev_dbg(ieee->dev, "%s(): ADDBA response already admitted\n",
                           __func__);
                return -1;
-       } else if (!pPendingBA->bValid ||
+       } else if (!pPendingBA->b_valid ||
                   (*pDialogToken != pPendingBA->DialogToken)) {
                netdev_warn(ieee->dev,
                            "%s(): ADDBA Rsp. BA invalid, DELBA!\n",
@@ -477,7 +477,7 @@ void TsInitAddBA(struct rtllib_device *ieee, struct tx_ts_record *pTS,
 {
        struct ba_record *pBA = &pTS->TxPendingBARecord;
 
-       if (pBA->bValid && !bOverwritePending)
+       if (pBA->b_valid && !bOverwritePending)
                return;
 
        DeActivateBAEntry(ieee, pBA);
@@ -505,7 +505,7 @@ void TsInitDelBA(struct rtllib_device *ieee,
 
                if (TxTsDeleteBA(ieee, pTxTs))
                        rtllib_send_DELBA(ieee, pTsCommonInfo->Addr,
-                                         (pTxTs->TxAdmittedBARecord.bValid) ?
+                                         (pTxTs->TxAdmittedBARecord.b_valid) ?
                                         (&pTxTs->TxAdmittedBARecord) :
                                        (&pTxTs->TxPendingBARecord),
                                         TxRxSelect, DELBA_REASON_END_BA);
@@ -526,7 +526,7 @@ void BaSetupTimeOut(struct timer_list *t)
 
        pTxTs->bAddBaReqInProgress = false;
        pTxTs->bAddBaReqDelayed = true;
-       pTxTs->TxPendingBARecord.bValid = false;
+       pTxTs->TxPendingBARecord.b_valid = false;
 }
 
 void TxBaInactTimeout(struct timer_list *t)
index 30596b9702c3c1f65bb082a1edbb10554c62dbfd..3ac5fd845d1db5a349cc5a1b33b0d5be609ade75 100644 (file)
@@ -297,7 +297,7 @@ static void rtllib_tx_query_agg_cap(struct rtllib_device *ieee,
                        netdev_info(ieee->dev, "%s: can't get TS\n", __func__);
                        return;
                }
-               if (!pTxTs->TxAdmittedBARecord.bValid) {
+               if (!pTxTs->TxAdmittedBARecord.b_valid) {
                        if (ieee->wpa_ie_len && (ieee->pairwise_key_type ==
                            KEY_TYPE_NA)) {
                                ;