Skip to content

Commit 0edd0fb

Browse files
treedaviesgregkh
authored andcommitted
Staging: rtl8192e: Rename variable BasicRate
Rename variable BasicRate to basic_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 66dda5e commit 0edd0fb

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

drivers/staging/rtl8192e/rtllib_softmac.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -142,23 +142,23 @@ u8 MgntQuery_TxRateExcludeCCKRates(struct rtllib_device *ieee)
142142
{
143143
u16 i;
144144
u8 query_rate = 0;
145-
u8 BasicRate;
145+
u8 basic_rate;
146146

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

159159
if (query_rate == 0) {
160160
query_rate = 12;
161-
netdev_info(ieee->dev, "No BasicRate found!!\n");
161+
netdev_info(ieee->dev, "No basic_rate found!!\n");
162162
}
163163
return query_rate;
164164
}

0 commit comments

Comments
 (0)