lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Tue, 13 Nov 2018 22:06:13 +0800
From:   Kevin Dou <dkj0101@....com>
To:     unlisted-recipients:; (no To-header on input)
Cc:     dkj0101@....com, Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
        Michael Straube <straube.linux@...il.com>,
        Janani Sankara Babu <jananis37@...il.com>,
        Kacper Kołodziej <kacper@...odziej.it>,
        Bhaskar Singh <bhaskar.kernel@...il.com>,
        Robert Węcławski <r.weclawski@...il.com>,
        devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org
Subject: [PATCH] staging: rtl8188eu: core: coding style check

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

Signed-off-by: Kevin Dou <dkj0101@....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


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ