Rename variable QueryRate to query_rate to fix checkpatch warning Avoid CamelCase. Signed-off-by: Tree Davies <tdavies@xxxxxxxxxxxxxxx> --- drivers/staging/rtl8192e/rtllib_softmac.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/staging/rtl8192e/rtllib_softmac.c b/drivers/staging/rtl8192e/rtllib_softmac.c index 0819efe36171..1e025ef4bed6 100644 --- a/drivers/staging/rtl8192e/rtllib_softmac.c +++ b/drivers/staging/rtl8192e/rtllib_softmac.c @@ -141,26 +141,26 @@ static void init_mgmt_queue(struct rtllib_device *ieee) u8 MgntQuery_TxRateExcludeCCKRates(struct rtllib_device *ieee) { u16 i; - u8 QueryRate = 0; + u8 query_rate = 0; u8 BasicRate; for (i = 0; i < ieee->current_network.rates_len; i++) { BasicRate = ieee->current_network.rates[i] & 0x7F; if (!rtllib_is_cck_rate(BasicRate)) { - if (QueryRate == 0) { - QueryRate = BasicRate; + if (query_rate == 0) { + query_rate = BasicRate; } else { - if (BasicRate < QueryRate) - QueryRate = BasicRate; + if (BasicRate < query_rate) + query_rate = BasicRate; } } } - if (QueryRate == 0) { - QueryRate = 12; + if (query_rate == 0) { + query_rate = 12; netdev_info(ieee->dev, "No BasicRate found!!\n"); } - return QueryRate; + return query_rate; } static u8 MgntQuery_MgntFrameTxRate(struct rtllib_device *ieee) -- 2.39.2