]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
Staging: rtl8192e: Rename variable pList
authorTree Davies <tdavies@darkphysics.net>
Tue, 21 May 2024 03:17:03 +0000 (20:17 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Jun 2024 11:16:20 +0000 (13:16 +0200)
Rename variable pList to list
to fix checkpatch warning Avoid CamelCase.

Signed-off-by: Tree Davies <tdavies@darkphysics.net>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/20240521031718.17852-17-tdavies@darkphysics.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtllib_rx.c

index 30bd6f49e91590e0f976e54ba359e718f08605b1..b1cb73c2177d9fa27b869388ed07b20e044f674e 100644 (file)
@@ -406,24 +406,24 @@ drop:
 static bool add_reorder_entry(struct rx_ts_record *ts,
                            struct rx_reorder_entry *pReorderEntry)
 {
-       struct list_head *pList = &ts->rx_pending_pkt_list;
+       struct list_head *list = &ts->rx_pending_pkt_list;
 
-       while (pList->next != &ts->rx_pending_pkt_list) {
+       while (list->next != &ts->rx_pending_pkt_list) {
                if (SN_LESS(pReorderEntry->SeqNum, ((struct rx_reorder_entry *)
-                   list_entry(pList->next, struct rx_reorder_entry,
+                   list_entry(list->next, struct rx_reorder_entry,
                    list))->SeqNum))
-                       pList = pList->next;
+                       list = list->next;
                else if (SN_EQUAL(pReorderEntry->SeqNum,
-                       ((struct rx_reorder_entry *)list_entry(pList->next,
+                       ((struct rx_reorder_entry *)list_entry(list->next,
                        struct rx_reorder_entry, list))->SeqNum))
                        return false;
                else
                        break;
        }
-       pReorderEntry->list.next = pList->next;
+       pReorderEntry->list.next = list->next;
        pReorderEntry->list.next->prev = &pReorderEntry->list;
-       pReorderEntry->list.prev = pList;
-       pList->next = &pReorderEntry->list;
+       pReorderEntry->list.prev = list;
+       list->next = &pReorderEntry->list;
 
        return true;
 }