Commit 607732b4 authored by Yogesh Hegde's avatar Yogesh Hegde Committed by Greg Kroah-Hartman
Browse files

staging: rtl8192e: Rename variables rateIndex and rateBitmap to avoid CamelCase



Rename variables
* rateIndex to rate_index
* rateBitmap to rate_bitmap
to avoid CamelCase which is not accepted by checkpatch.pl .

Signed-off-by: default avatarYogesh Hegde <yogi.kernel@gmail.com>
Link: https://lore.kernel.org/r/20221030133204.GA416592@zephyrus


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f369953d
Loading
Loading
Loading
Loading
+6 −6
Original line number Original line Diff line number Diff line
@@ -2121,8 +2121,8 @@ static void _rtl92e_dm_end_sw_fsync(struct net_device *dev)
static void _rtl92e_dm_start_sw_fsync(struct net_device *dev)
static void _rtl92e_dm_start_sw_fsync(struct net_device *dev)
{
{
	struct r8192_priv *priv = rtllib_priv(dev);
	struct r8192_priv *priv = rtllib_priv(dev);
	u32			rateIndex;
	u32 rate_index;
	u32			rateBitmap;
	u32 rate_bitmap;


	priv->rate_record = 0;
	priv->rate_record = 0;
	priv->ContinueDiffCount = 0;
	priv->ContinueDiffCount = 0;
@@ -2136,12 +2136,12 @@ static void _rtl92e_dm_start_sw_fsync(struct net_device *dev)
		priv->rtllib->fsync_firstdiff_ratethreshold = 200;
		priv->rtllib->fsync_firstdiff_ratethreshold = 200;
		priv->rtllib->fsync_seconddiff_ratethreshold = 200;
		priv->rtllib->fsync_seconddiff_ratethreshold = 200;
	}
	}
	for (rateIndex = 0; rateIndex <= 27; rateIndex++) {
	for (rate_index = 0; rate_index <= 27; rate_index++) {
		rateBitmap  = 1 << rateIndex;
		rate_bitmap  = 1 << rate_index;
		if (priv->rtllib->fsync_rate_bitmap & rateBitmap)
		if (priv->rtllib->fsync_rate_bitmap & rate_bitmap)
			priv->rate_record +=
			priv->rate_record +=
				 priv->stats.received_rate_histogram[1]
				 priv->stats.received_rate_histogram[1]
				[rateIndex];
				[rate_index];
	}
	}
	if (timer_pending(&priv->fsync_timer))
	if (timer_pending(&priv->fsync_timer))
		del_timer_sync(&priv->fsync_timer);
		del_timer_sync(&priv->fsync_timer);