diff options
author | Tree Davies <tdavies@darkphysics.net> | 2024-01-27 01:30:51 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-02-17 19:28:17 +0300 |
commit | 808f35c4e635e54c4b3e205cb5b54bd1ed47cdc9 (patch) | |
tree | 702015e0ed354ce276f7e121ed699d5bed179a35 /drivers/staging | |
parent | a372b8023741783d7753b8993538084b033a45ac (diff) | |
download | linux-808f35c4e635e54c4b3e205cb5b54bd1ed47cdc9.tar.xz |
Staging: rtl8192e: Rename variable LPSAwakeIntvl_tmp
Rename variable LPSAwakeIntvl_tmp to lps_awake_intvl_tmp to fix checkpatch
warning Avoid CamelCase.
Signed-off-by: Tree Davies <tdavies@darkphysics.net>
Link: https://lore.kernel.org/r/20240126223106.986093-4-tdavies@darkphysics.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/rtl8192e/rtllib_softmac.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/staging/rtl8192e/rtllib_softmac.c b/drivers/staging/rtl8192e/rtllib_softmac.c index cf855ba39c10..8a60bf3b7079 100644 --- a/drivers/staging/rtl8192e/rtllib_softmac.c +++ b/drivers/staging/rtl8192e/rtllib_softmac.c @@ -1390,33 +1390,33 @@ static short rtllib_sta_ps_sleep(struct rtllib_device *ieee, u64 *time) (psc->LPSAwakeIntvl + 1); } { - u8 LPSAwakeIntvl_tmp = 0; + u8 lps_awake_intvl_tmp = 0; u8 period = ieee->current_network.dtim_period; u8 count = ieee->current_network.tim.tim_count; if (count == 0) { if (psc->LPSAwakeIntvl > period) - LPSAwakeIntvl_tmp = period + + lps_awake_intvl_tmp = period + (psc->LPSAwakeIntvl - period) - ((psc->LPSAwakeIntvl - period) % period); else - LPSAwakeIntvl_tmp = psc->LPSAwakeIntvl; + lps_awake_intvl_tmp = psc->LPSAwakeIntvl; } else { if (psc->LPSAwakeIntvl > ieee->current_network.tim.tim_count) - LPSAwakeIntvl_tmp = count + + lps_awake_intvl_tmp = count + (psc->LPSAwakeIntvl - count) - ((psc->LPSAwakeIntvl - count) % period); else - LPSAwakeIntvl_tmp = psc->LPSAwakeIntvl; + lps_awake_intvl_tmp = psc->LPSAwakeIntvl; } *time = ieee->current_network.last_dtim_sta_time + msecs_to_jiffies(ieee->current_network.beacon_interval * - LPSAwakeIntvl_tmp); + lps_awake_intvl_tmp); } } |