Skip to content

Commit 66dda5e

Browse files
treedaviesgregkh
authored andcommitted
Staging: rtl8192e: Rename variable QueryRate
Rename variable QueryRate to query_rate to fix checkpatch warning Avoid CamelCase. Signed-off-by: Tree Davies <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 8867af6 commit 66dda5e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

drivers/staging/rtl8192e/rtllib_softmac.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -141,26 +141,26 @@ static void init_mgmt_queue(struct rtllib_device *ieee)
141141
u8 MgntQuery_TxRateExcludeCCKRates(struct rtllib_device *ieee)
142142
{
143143
u16 i;
144-
u8 QueryRate = 0;
144+
u8 query_rate = 0;
145145
u8 BasicRate;
146146

147147
for (i = 0; i < ieee->current_network.rates_len; i++) {
148148
BasicRate = ieee->current_network.rates[i] & 0x7F;
149149
if (!rtllib_is_cck_rate(BasicRate)) {
150-
if (QueryRate == 0) {
151-
QueryRate = BasicRate;
150+
if (query_rate == 0) {
151+
query_rate = BasicRate;
152152
} else {
153-
if (BasicRate < QueryRate)
154-
QueryRate = BasicRate;
153+
if (BasicRate < query_rate)
154+
query_rate = BasicRate;
155155
}
156156
}
157157
}
158158

159-
if (QueryRate == 0) {
160-
QueryRate = 12;
159+
if (query_rate == 0) {
160+
query_rate = 12;
161161
netdev_info(ieee->dev, "No BasicRate found!!\n");
162162
}
163-
return QueryRate;
163+
return query_rate;
164164
}
165165

166166
static u8 MgntQuery_MgntFrameTxRate(struct rtllib_device *ieee)

0 commit comments

Comments
 (0)