]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging:rtl8192u: Rename RxPendingPktList - Style
authorJohn Whitmore <johnfwhitmore@gmail.com>
Fri, 27 Jul 2018 17:31:18 +0000 (18:31 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 29 Jul 2018 08:15:52 +0000 (10:15 +0200)
Rename the member variable RxPendingPktList to rx_pending_pkt_list.
This change resolves the checkpatch issue with CamelCase naming.

The resulting changes are purely coding style changes which should have
no impact on runtime code execution.

Signed-off-by: John Whitmore <johnfwhitmore@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c
drivers/staging/rtl8192u/ieee80211/rtl819x_TS.h
drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c

index 99fb59a3b8f0f6ce36d8cf466e98791429cc3104..0a1f433def2f227962b31311a7c82497a5745437 100644 (file)
@@ -510,8 +510,8 @@ static int is_duplicate_packet(struct ieee80211_device *ieee,
 
 static bool AddReorderEntry(struct rx_ts_record *pTS, PRX_REORDER_ENTRY pReorderEntry)
 {
-       struct list_head *pList = &pTS->RxPendingPktList;
-       while(pList->next != &pTS->RxPendingPktList)
+       struct list_head *pList = &pTS->rx_pending_pkt_list;
+       while(pList->next != &pTS->rx_pending_pkt_list)
        {
                if( SN_LESS(pReorderEntry->SeqNum, ((PRX_REORDER_ENTRY)list_entry(pList->next,RX_REORDER_ENTRY,List))->SeqNum) )
                {
@@ -707,9 +707,9 @@ static void RxReorderIndicatePacket(struct ieee80211_device *ieee,
        }
 
        /* Check if there is any packet need indicate.*/
-       while(!list_empty(&pTS->RxPendingPktList)) {
+       while(!list_empty(&pTS->rx_pending_pkt_list)) {
                IEEE80211_DEBUG(IEEE80211_DL_REORDER,"%s(): start RREORDER indicate\n",__func__);
-               pReorderEntry = (PRX_REORDER_ENTRY)list_entry(pTS->RxPendingPktList.prev,RX_REORDER_ENTRY,List);
+               pReorderEntry = (PRX_REORDER_ENTRY)list_entry(pTS->rx_pending_pkt_list.prev,RX_REORDER_ENTRY,List);
                if (SN_LESS(pReorderEntry->SeqNum, pTS->rx_indicate_seq) ||
                    SN_EQUAL(pReorderEntry->SeqNum, pTS->rx_indicate_seq))
                {
index 02b76d49b5e10b818d2292a42b6af16c4c27ea5b..9c85d3623578577534f7c27447885ee6ad93c49d 100644 (file)
@@ -41,7 +41,7 @@ struct rx_ts_record {
        struct ts_common_info           ts_common_info;
        u16                             rx_indicate_seq;
        u16                             rx_timeout_indicate_seq;
-       struct list_head                RxPendingPktList;
+       struct list_head                rx_pending_pkt_list;
        struct timer_list               RxPktPendingTimer;
        BA_RECORD                       RxAdmittedBARecord;      /*  For BA Recipient */
        u16                             RxLastSeqNum;
index e3877f35e677d9ebce07019ab678a43abb26bea8..6a6aad6decd66112eb52f37cee5d3fdc3c789046 100644 (file)
@@ -39,8 +39,8 @@ static void RxPktPendingTimeout(struct timer_list *t)
        IEEE80211_DEBUG(IEEE80211_DL_REORDER,"==================>%s()\n",__func__);
        if(pRxTs->rx_timeout_indicate_seq != 0xffff) {
                // Indicate the pending packets sequentially according to SeqNum until meet the gap.
-               while(!list_empty(&pRxTs->RxPendingPktList)) {
-                       pReorderEntry = (PRX_REORDER_ENTRY)list_entry(pRxTs->RxPendingPktList.prev,RX_REORDER_ENTRY,List);
+               while(!list_empty(&pRxTs->rx_pending_pkt_list)) {
+                       pReorderEntry = (PRX_REORDER_ENTRY)list_entry(pRxTs->rx_pending_pkt_list.prev,RX_REORDER_ENTRY,List);
                        if(index == 0)
                                pRxTs->rx_indicate_seq = pReorderEntry->SeqNum;
 
@@ -166,7 +166,7 @@ void TSInitialize(struct ieee80211_device *ieee)
        INIT_LIST_HEAD(&ieee->Rx_TS_Unused_List);
        for(count = 0; count < TOTAL_TS_NUM; count++) {
                pRxTS->num = count;
-               INIT_LIST_HEAD(&pRxTS->RxPendingPktList);
+               INIT_LIST_HEAD(&pRxTS->rx_pending_pkt_list);
                timer_setup(&pRxTS->ts_common_info.setup_timer, TsSetupTimeOut,
                            0);
                timer_setup(&pRxTS->ts_common_info.inact_timer, TsInactTimeout,
@@ -423,10 +423,10 @@ static void RemoveTsEntry(struct ieee80211_device *ieee, struct ts_common_info *
                if(timer_pending(&pRxTS->RxPktPendingTimer))
                        del_timer_sync(&pRxTS->RxPktPendingTimer);
 
-               while(!list_empty(&pRxTS->RxPendingPktList)) {
+               while(!list_empty(&pRxTS->rx_pending_pkt_list)) {
                        spin_lock_irqsave(&(ieee->reorder_spinlock), flags);
-                       //pRxReorderEntry = list_entry(&pRxTS->RxPendingPktList.prev,RX_REORDER_ENTRY,List);
-                       pRxReorderEntry = (PRX_REORDER_ENTRY)list_entry(pRxTS->RxPendingPktList.prev,RX_REORDER_ENTRY,List);
+                       //pRxReorderEntry = list_entry(&pRxTS->rx_pending_pkt_list.prev,RX_REORDER_ENTRY,List);
+                       pRxReorderEntry = (PRX_REORDER_ENTRY)list_entry(pRxTS->rx_pending_pkt_list.prev,RX_REORDER_ENTRY,List);
                        list_del_init(&pRxReorderEntry->List);
                        {
                                int i = 0;