aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/staging/rtl8192e/rtl8192e/rtl_core.c
diff options
context:
space:
mode:
authorTree Davies <tdavies@darkphysics.net>2024-01-05 21:55:37 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-01-24 10:17:09 -0800
commit0f5986018bd5575434fef330eec585c1120b51dd (patch)
treef9842a0c83236a946fd47b7ad261a0cdbf8da4e0 /drivers/staging/rtl8192e/rtl8192e/rtl_core.c
parentStaging: rtl8192e: Remove unnecessary parenthesis in rtllib_softmac_new_net() (diff)
downloadwireguard-linux-0f5986018bd5575434fef330eec585c1120b51dd.tar.xz
wireguard-linux-0f5986018bd5575434fef330eec585c1120b51dd.zip
Staging: rtl8192e: Rename variable SlotIndex
Rename variable SlotIndex to slot_index to fix checkpatch warning Avoid CamelCase. Signed-off-by: Tree Davies <tdavies@darkphysics.net> Link: https://lore.kernel.org/r/20240106055556.430948-3-tdavies@darkphysics.net Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8192e/rtl8192e/rtl_core.c')
-rw-r--r--drivers/staging/rtl8192e/rtl8192e/rtl_core.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c
index 7b5d954acf6d..49c5d308097a 100644
--- a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c
+++ b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c
@@ -914,17 +914,17 @@ static void _rtl92e_if_check_reset(struct net_device *dev)
static void _rtl92e_update_rxcounts(struct r8192_priv *priv, u32 *TotalRxBcnNum,
u32 *TotalRxDataNum)
{
- u16 SlotIndex;
+ u16 slot_index;
u8 i;
*TotalRxBcnNum = 0;
*TotalRxDataNum = 0;
- SlotIndex = (priv->rtllib->link_detect_info.SlotIndex++) %
+ slot_index = (priv->rtllib->link_detect_info.slot_index++) %
(priv->rtllib->link_detect_info.SlotNum);
- priv->rtllib->link_detect_info.RxBcnNum[SlotIndex] =
+ priv->rtllib->link_detect_info.RxBcnNum[slot_index] =
priv->rtllib->link_detect_info.NumRecvBcnInPeriod;
- priv->rtllib->link_detect_info.RxDataNum[SlotIndex] =
+ priv->rtllib->link_detect_info.RxDataNum[slot_index] =
priv->rtllib->link_detect_info.NumRecvDataInPeriod;
for (i = 0; i < priv->rtllib->link_detect_info.SlotNum; i++) {
*TotalRxBcnNum += priv->rtllib->link_detect_info.RxBcnNum[i];