]> www.infradead.org Git - linux.git/commitdiff
Staging: rtl8192e: Rename variable nStuckCount
authorTree Davies <tdavies@darkphysics.net>
Sun, 8 Sep 2024 19:26:30 +0000 (12:26 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 11 Sep 2024 13:54:42 +0000 (15:54 +0200)
Rename variable nStuckCount to stuck_count
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/20240908192633.94144-14-tdavies@darkphysics.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/rtl_core.c
drivers/staging/rtl8192e/rtllib.h

index a5980253183e03844500666ddb7d6cdf28065699..5a4113c97b1c4122125a42ea49953a9ea1626b28 100644 (file)
@@ -860,13 +860,13 @@ static enum reset_type _rtl92e_tx_check_stuck(struct net_device *dev)
                        skb = __skb_peek(&ring->queue);
                        tcb_desc = (struct cb_desc *)(skb->cb +
                                    MAX_DEV_ADDR_SIZE);
-                       tcb_desc->nStuckCount++;
+                       tcb_desc->stuck_count++;
                        bCheckFwTxCnt = true;
-                       if (tcb_desc->nStuckCount > 1)
+                       if (tcb_desc->stuck_count > 1)
                                netdev_info(dev,
-                                           "%s: QueueID=%d tcb_desc->nStuckCount=%d\n",
+                                           "%s: QueueID=%d tcb_desc->stuck_count=%d\n",
                                            __func__, QueueID,
-                                           tcb_desc->nStuckCount);
+                                           tcb_desc->stuck_count);
                }
        }
        spin_unlock_irqrestore(&priv->irq_th_lock, flags);
index 5ff3fab72589389042f30e064c33a07c77f4ae3b..540ab4e34e703bf8bf5929ed87b0439d5a2c05f8 100644 (file)
@@ -107,7 +107,7 @@ struct cb_desc {
        u8 tx_use_drv_assinged_rate:1;
        u8 hw_sec:1;
 
-       u8 nStuckCount;
+       u8 stuck_count;
 
        /* Tx Firmware Related flags (10-11)*/
        u8 cts_enable:1;