mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Kevin Dou <dkj0101@163.com>
To: unlisted-recipients:; (no To-header on input)
Cc: dkj0101@163.com,
	"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
	"Michael Straube" <straube.linux@gmail.com>,
	"Janani Sankara Babu" <jananis37@gmail.com>,
	"Kacper Kołodziej" <kacper@kolodziej.it>,
	"Bhaskar Singh" <bhaskar.kernel@gmail.com>,
	"Robert Węcławski" <r.weclawski@gmail.com>,
	devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org
Subject: [PATCH] staging: rtl8188eu: core: coding style check
Date: Tue, 13 Nov 2018 22:06:13 +0800	[thread overview]
Message-ID: <1542117978-22317-1-git-send-email-dkj0101@163.com> (raw)

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



             reply	other threads:[~2018-11-13 14:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-13 14:06 Kevin Dou [this message]
2018-11-20  9:53 ` Greg Kroah-Hartman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1542117978-22317-1-git-send-email-dkj0101@163.com \
    --to=dkj0101@163.com \
    --cc=bhaskar.kernel@gmail.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=jananis37@gmail.com \
    --cc=kacper@kolodziej.it \
    --cc=linux-kernel@vger.kernel.org \
    --cc=r.weclawski@gmail.com \
    --cc=straube.linux@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®