mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-04 01:20:01 -04:00
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
a372b80237
commit
808f35c4e6
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user