All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: rtl8188eu: core: coding style check
@ 2018-11-13 14:06 Kevin Dou
  2018-11-20  9:53 ` Greg Kroah-Hartman
  0 siblings, 1 reply; 2+ messages in thread
From: Kevin Dou @ 2018-11-13 14:06 UTC (permalink / raw)
  Cc: dkj0101, Greg Kroah-Hartman, Michael Straube, Janani Sankara Babu,
	Kacper Kołodziej, Bhaskar Singh, Robert Węcławski,
	devel, linux-kernel

follow the linux coding style, rename the variable
shortGIrate to short_gi_rate.

Signed-off-by: Kevin Dou <dkj0101@163.com>
---
 drivers/staging/rtl8188eu/core/rtw_ap.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/rtl8188eu/core/rtw_ap.c b/drivers/staging/rtl8188eu/core/rtw_ap.c
index 1c319c2..c3ea65b 100644
--- a/drivers/staging/rtl8188eu/core/rtw_ap.c
+++ b/drivers/staging/rtl8188eu/core/rtw_ap.c
@@ -334,7 +334,7 @@ void add_RATid(struct adapter *padapter, struct sta_info *psta, u8 rssi_level)
 {
 	int i;
 	u32 init_rate = 0;
-	unsigned char sta_band = 0, raid, shortGIrate = false;
+	unsigned char sta_band = 0, raid, short_gi_rate = false;
 	unsigned int tx_ra_bitmap = 0;
 	struct ht_priv	*psta_ht = NULL;
 
@@ -358,7 +358,7 @@ void add_RATid(struct adapter *padapter, struct sta_info *psta, u8 rssi_level)
 				tx_ra_bitmap |= BIT(i + 12);
 
 		/* max short GI rate */
-		shortGIrate = psta_ht->sgi;
+		short_gi_rate = psta_ht->sgi;
 	}
 
 	if (tx_ra_bitmap & 0xffff000)
@@ -381,7 +381,7 @@ void add_RATid(struct adapter *padapter, struct sta_info *psta, u8 rssi_level)
 
 		arg |= BIT(7);/* support entry 2~31 */
 
-		if (shortGIrate)
+		if (short_gi_rate)
 			arg |= BIT(5);
 
 		tx_ra_bitmap |= ((raid << 28) & 0xf0000000);
@@ -395,7 +395,7 @@ void add_RATid(struct adapter *padapter, struct sta_info *psta, u8 rssi_level)
 		/* arg[5] = Short GI */
 		rtw_hal_add_ra_tid(padapter, tx_ra_bitmap, arg, rssi_level);
 
-		if (shortGIrate)
+		if (short_gi_rate)
 			init_rate |= BIT(6);
 
 		/* set ra_id, init_rate */
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-11-20  9:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-13 14:06 [PATCH] staging: rtl8188eu: core: coding style check Kevin Dou
2018-11-20  9:53 ` Greg Kroah-Hartman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.