Skip to content

Commit a035ddb

Browse files
treedaviesgregkh
authored andcommitted
Staging: rtl8192e: Rename variable nStuckCount
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>
1 parent 8c8aef9 commit a035ddb

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

drivers/staging/rtl8192e/rtl8192e/rtl_core.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -860,13 +860,13 @@ static enum reset_type _rtl92e_tx_check_stuck(struct net_device *dev)
860860
skb = __skb_peek(&ring->queue);
861861
tcb_desc = (struct cb_desc *)(skb->cb +
862862
MAX_DEV_ADDR_SIZE);
863-
tcb_desc->nStuckCount++;
863+
tcb_desc->stuck_count++;
864864
bCheckFwTxCnt = true;
865-
if (tcb_desc->nStuckCount > 1)
865+
if (tcb_desc->stuck_count > 1)
866866
netdev_info(dev,
867-
"%s: QueueID=%d tcb_desc->nStuckCount=%d\n",
867+
"%s: QueueID=%d tcb_desc->stuck_count=%d\n",
868868
__func__, QueueID,
869-
tcb_desc->nStuckCount);
869+
tcb_desc->stuck_count);
870870
}
871871
}
872872
spin_unlock_irqrestore(&priv->irq_th_lock, flags);

drivers/staging/rtl8192e/rtllib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ struct cb_desc {
107107
u8 tx_use_drv_assinged_rate:1;
108108
u8 hw_sec:1;
109109

110-
u8 nStuckCount;
110+
u8 stuck_count;
111111

112112
/* Tx Firmware Related flags (10-11)*/
113113
u8 cts_enable:1;

0 commit comments

Comments
 (0)